Created
August 14, 2013 06:34
-
-
Save ZhukV/6228514 to your computer and use it in GitHub Desktop.
Check multiple implementation
This file contains 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 iA | |
{ | |
public function someA(); | |
public function thisIs(); | |
} | |
interface iB | |
{ | |
public function someB(); | |
public function thisIs(); | |
} | |
class A implements iA | |
{ | |
public function someA() {} | |
public function thisIs() {} | |
} | |
class B implements iB | |
{ | |
public function someB() {} | |
public function thisIs() {} | |
} | |
class AB implements iA, iB | |
{ | |
public function someA() {} | |
public function someB() {} | |
public function thisIs() {} | |
} | |
$a = new A; | |
$b = new B; | |
$ab = new AB; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment