Created
March 7, 2014 17:34
-
-
Save stevenwadejr/9416043 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SayNothing | |
{ | |
public function howToAct() | |
{ | |
return 'If you can\t say anything nice, then don\'t say anything at all'; | |
} | |
} | |
class GoldenRule extends SayNothing | |
{ | |
public function howToAct() | |
{ | |
return 'Treat others how you want to be treated'; | |
} | |
} | |
class Respect extends GoldenRule | |
{ | |
public function howToAct() | |
{ | |
return 'Be respectful'; | |
} | |
} | |
class HumanBeing extends Respect() {} | |
$developer = new HumanBeing(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment