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
{
20 protected static $staticProperty = 'sp';
21 private static $staticPrivateProperty = 'spp';
24 private $privateProperty;
26 protected static function staticMethod() {
30 private static function staticPrivateMethod() {
34 public function __construct() {
35 parent
::__construct();
37 $this->privateProperty
= 42;
40 protected function incrementPropertyValue() {
44 private function incrementPrivatePropertyValue() {
45 $this->privateProperty++
;
48 public function getProperty() {
49 return $this->property
;
52 public function getPrivateProperty() {
53 return $this->privateProperty
;
56 protected function whatSecondArg( $a, $b = false ) {