| Total Complexity | 6 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 18 | class CustomerForArrayable extends ActiveRecord |
||
| 19 | { |
||
| 20 | public array $items = []; |
||
| 21 | |||
| 22 | public ?CustomerForArrayable $item = null; |
||
| 23 | |||
| 24 | public function getTableName(): string |
||
| 25 | { |
||
| 26 | return 'customer'; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function fields(): array |
||
| 37 | } |
||
| 38 | |||
| 39 | public function setItem(CustomerForArrayable $item) { |
||
| 40 | $this->item = $item; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function setItems(CustomerForArrayable ...$items) |
||
| 44 | { |
||
| 45 | $this->items = $items; |
||
| 46 | } |
||
| 47 | |||
| 48 | public function toArray(array $fields = [], array $expand = [], bool $recursive = true): array |
||
| 55 | } |
||
| 56 | } |
||
| 57 |