No Description

CoveredClass.php 587B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. class CoveredParentClass
  3. {
  4. private function privateMethod()
  5. {
  6. }
  7. protected function protectedMethod()
  8. {
  9. $this->privateMethod();
  10. }
  11. public function publicMethod()
  12. {
  13. $this->protectedMethod();
  14. }
  15. }
  16. class CoveredClass extends CoveredParentClass
  17. {
  18. private function privateMethod()
  19. {
  20. }
  21. protected function protectedMethod()
  22. {
  23. parent::protectedMethod();
  24. $this->privateMethod();
  25. }
  26. public function publicMethod()
  27. {
  28. parent::publicMethod();
  29. $this->protectedMethod();
  30. }
  31. }