Diff
Index: ApiParam.php
--- ApiParam.php (nonexistent)
+++ ApiParam.php (revision 4)
@@ -0,0 +1,26 @@
+<?php
+declare(strict_types = 1);
+
+namespace App\RestApi\Models;
+
+/**
+ * Api Document Parameter
+ */
+class ApiParam
+{
+
+ /**
+ * Constructor
+ */
+ public function __construct(
+ public string $name,
+ public bool $is_required = false,
+ public string $type = 'string',
+ public string $description = ''
+ ) {
+
+ }
+
+}
+
+
Full Code
<?php
declare(strict_types = 1);
namespace App\RestApi\Models;
/**
* Api Document Parameter
*/
class ApiParam
{
/**
* Constructor
*/
public function __construct(
public string $name,
public bool $is_required = false,
public string $type = 'string',
public string $description = ''
) {
}
}