fork download
  1. <?php
  2.  
  3. class DepartmentBuilder
  4. {
  5. private $department;
  6.  
  7. public function __construct(string $name)
  8. {
  9. $this->department = new Department($name);
  10. }
  11.  
  12. public function buildEmployees(Profession $profession, int $amount, int $rank): void
  13. {
  14. //
  15. }
  16.  
  17. public function getDepartment(): Department
  18. {
  19. return $this->department;
  20. }
  21.  
  22. }
Success #stdin #stdout 0s 82560KB
stdin
Standard input is empty
stdout
Standard output is empty