Skip to content

Instantly share code, notes, and snippets.

@JuanLuisGarciaBorrego
Created July 5, 2015 11:12
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 JuanLuisGarciaBorrego/893c62c7e00aea79860f to your computer and use it in GitHub Desktop.
Save JuanLuisGarciaBorrego/893c62c7e00aea79860f to your computer and use it in GitHub Desktop.
Application LSP
class Application
{
protected $name;
public function __construct($name)
{
$this->name = $name;
}
public function welcome(WelcomeInterface $wellcome)
{
return $wellcome->getWelcome()." ".$this->name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment