Total Complexity | 6 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
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(self $item) |
||
40 | { |
||
41 | $this->item = $item; |
||
42 | } |
||
43 | |||
44 | public function setItems(self ...$items) |
||
45 | { |
||
46 | $this->items = $items; |
||
47 | } |
||
48 | |||
49 | public function toArray(array $fields = [], array $expand = [], bool $recursive = true): array |
||
56 | } |
||
57 | } |
||
58 |