Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
21 | final class Employee extends ActiveRecord |
||
22 | { |
||
23 | public function getTableName(): string |
||
24 | { |
||
25 | return 'employee'; |
||
26 | } |
||
27 | |||
28 | public function getFullName(): string |
||
31 | } |
||
32 | |||
33 | public function getDepartmentQuery(): ActiveQuery |
||
34 | { |
||
35 | return $this |
||
36 | ->hasOne(Department::class, [ |
||
37 | 'id' => 'department_id', |
||
38 | ]) |
||
39 | ->inverseOf('employees') |
||
40 | ; |
||
41 | } |
||
42 | |||
43 | public function getDossierQuery(): ActiveQuery |
||
52 | } |
||
53 | } |
||
54 |