You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class FirstClass { protected$_protectedProperty; public$publicProperty; protectedfunction_protectedMethod() { echo'This is protected method of first class'; } publicfunctionpublicMethod() { echo'This is public method of first class'; } } class SecondClass extends FirstClass { private$sp8839d9; protectedfunction_protectedMethod() { parent::_protectedMethod(); echo'This is protected method of second class'; $this->sp8839d9 = parent::$_protectedProperty; } publicfunctionpublicMethod() { parent::publicMethod(); echo'This is public method of second class'; $this->sp8839d9 = parent::$publicProperty; } publicstaticfunctionanotherPublicMethod() { } } class ThirdClass { privatestaticfunctionspe81a11() { } publicfunction__construct(SecondClass$spb91639) { $spb91639->publicMethod(); $spb91639::anotherPublicMethod(); } privatefunctionsp70ab23() { echo'test'; } protectedfunctionsomeFunc() { $this->sp70ab23(); self::spe81a11(); } }
2
+
class FirstClass { protected$_protectedProperty; public$publicProperty; protectedfunction_protectedMethod() { echo'This is protected method of first class'; } publicfunctionpublicMethod() { echo'This is public method of first class'; } } class SecondClass extends FirstClass { private$sp8839d9; protectedfunction_protectedMethod() { parent::_protectedMethod(); echo'This is protected method of second class'; $this->sp8839d9 = parent::$_protectedProperty; } publicfunctionpublicMethod() { parent::publicMethod(); echo'This is public method of second class'; $this->sp8839d9 = parent::$publicProperty; } publicstaticfunctionanotherPublicMethod() { } } class ThirdClass { private$spa36ab6; privatestaticfunctionspe81a11() { } publicfunction__construct(SecondClass$spb91639) { $spb91639->publicMethod(); $spb91639::anotherPublicMethod(); $spb91639->publicProperty = 'test'; } privatefunctionsp70ab23() { echo'test'; } protectedfunctionsomeFunc() { $this->spa36ab6 = 'test'; $this->sp70ab23(); self::spe81a11(); } }
0 commit comments