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