fork(1) download
  1. <?php
  2.  
  3. class Department
  4. {
  5. public $name;
  6. public $workers = [];
  7. }
  8.  
  9. class Employee
  10. {
  11. public $salary;
  12. public $coffeUsage;
  13. public $rank;
  14. public $leader = false;
  15. }
  16.  
  17. class Manager extends Employee
  18. {
  19. public $salary = 500;
  20. public $coffeUsage = 20;
  21. public $reports = 200;
  22. }
  23.  
  24. class MarketGuy extends Employee
  25. {
  26. public $salary = 400;
  27. public $coffeUsage = 15;
  28. public $reports = 150;
  29. }
  30.  
  31. class Engineer extends Employee
  32. {
  33. public $salary = 200;
  34. public $coffeUsage = 5;
  35. public $plans = 50;
  36. }
  37.  
  38. class Analyst extends Employee
  39. {
  40. public $salary = 800;
  41. public $coffeUsage = 50;
  42. public $researches = 5;
  43. }
Success #stdin #stdout 0.02s 24400KB
stdin
Standard input is empty
stdout
Standard output is empty