Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Concert {
- public function push(HumanBeingInterface $humanBeing) {
- return $humanBeing->sing();
- }
- }
- $concert = new Concert();
- $concert->push(new UnlceBob()); // It works
- $concert->push(new Unclexo()); // This wont work
Add Comment
Please, Sign In to add comment