Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | final class Department extends ActiveRecord |
||
16 | { |
||
17 | protected int $id; |
||
18 | protected string $title; |
||
19 | |||
20 | public function getTableName(): string |
||
21 | { |
||
22 | return 'department'; |
||
23 | } |
||
24 | |||
25 | public function relationQuery(string $name): ActiveQueryInterface |
||
30 | }; |
||
31 | } |
||
32 | |||
33 | public function getEmployees(): ActiveRecordInterface |
||
34 | { |
||
35 | return $this->relation('employees'); |
||
|
|||
36 | } |
||
37 | |||
38 | public function getEmployeesQuery(): ActiveQuery |
||
46 | } |
||
47 | } |
||
48 |