Skip to content

Instantly share code, notes, and snippets.

@stevenwadejr
Created March 7, 2014 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevenwadejr/9416043 to your computer and use it in GitHub Desktop.
Save stevenwadejr/9416043 to your computer and use it in GitHub Desktop.
<?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