Created
January 23, 2017 14:04
-
-
Save mkusher/e9f448685ecad086f9430025fdd975e2 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 | |
interface Chef | |
{ | |
public function cook(); | |
} | |
class TrueItalianChef implements Chef | |
{ | |
public function cook() | |
{ | |
return new MargeryPizza(); | |
} | |
} | |
interface Pizza | |
{ | |
} | |
class MargeryPizza implements Pizza | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment