3 class WellProtectedParentClass
{
4 private $privateParentProperty;
6 public function __construct() {
7 $this->privateParentProperty
= 9000;
10 private function incrementPrivateParentPropertyValue() {
11 $this->privateParentProperty++
;
14 public function getPrivateParentProperty() {
15 return $this->privateParentProperty
;
19 class WellProtectedClass
extends WellProtectedParentClass
{
21 private $privateProperty;
23 public function __construct() {
24 parent
::__construct();
26 $this->privateProperty
= 42;
29 protected function incrementPropertyValue() {
33 private function incrementPrivatePropertyValue() {
34 $this->privateProperty++
;
37 public function getProperty() {
38 return $this->property
;
41 public function getPrivateProperty() {
42 return $this->privateProperty
;
45 protected function whatSecondArg( $a, $b = false ) {