| Total Complexity | 2 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class Properties extends Component |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * The map between schema and PHP types. |
||
| 17 | * |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $typesMap = [ |
||
| 21 | 'guid' => 'string', |
||
| 22 | 'boolean' => 'bool', |
||
| 23 | 'datetime' => 'Carbon\Carbon', |
||
| 24 | 'string' => 'string', |
||
| 25 | 'json' => 'string', |
||
| 26 | 'integer' => 'int', |
||
| 27 | 'date' => 'Carbon\Carbon', |
||
| 28 | 'smallint' => 'int', |
||
| 29 | 'text' => 'string', |
||
| 30 | 'decimal' => 'float', |
||
| 31 | 'bigint' => 'int', |
||
| 32 | ]; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Retrieve the model properties |
||
| 36 | * |
||
| 37 | * @return array |
||
| 38 | */ |
||
| 39 | 2 | public function get(): array |
|
| 59 |