| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | class TeamLead implements DeveloperInterface, DelegationInterface |
||
| 13 | { |
||
| 14 | private DeveloperInterface $developer; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Delegates a task to another developer |
||
| 18 | * ------------------------------------- |
||
| 19 | * Делегирует задачу другому разработчику |
||
| 20 | * |
||
| 21 | * @param DeveloperInterface $developer |
||
| 22 | * @return void |
||
| 23 | */ |
||
| 24 | public function delegateTo(DeveloperInterface $developer): void |
||
| 25 | { |
||
| 26 | $this->developer = $developer; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Writes program code |
||
| 31 | * ------------------- |
||
| 32 | * Пишет код программы |
||
| 33 | * |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function writeCode(): string |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Gets another developer's code |
||
| 43 | * ----------------------------- |
||
| 44 | * Получает код другого разработчика |
||
| 45 | * |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function getCodeFromDeveloper(): string |
||
| 53 |