| Total Complexity | 4 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class Employee extends ActiveRecord |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | */ |
||
| 27 | public static function tableName(): string |
||
| 28 | { |
||
| 29 | return 'employee'; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Returns employee full name. |
||
| 34 | * |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function getFullName(): string |
||
| 38 | { |
||
| 39 | return $this->first_name . ' ' . $this->last_name; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Returns employee department. |
||
| 44 | * |
||
| 45 | * @return ActiveQuery |
||
| 46 | */ |
||
| 47 | public function getDepartment(): ActiveQuery |
||
| 54 | ; |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Returns employee department. |
||
| 59 | * |
||
| 60 | * @return ActiveQuery |
||
| 61 | */ |
||
| 62 | public function getDossier(): ActiveQuery |
||
| 70 | ; |
||
| 71 | } |
||
| 73 |