Skip to content

Instantly share code, notes, and snippets.

@ZhukV
Created August 14, 2013 06:34
Show Gist options
  • Save ZhukV/6228514 to your computer and use it in GitHub Desktop.
Save ZhukV/6228514 to your computer and use it in GitHub Desktop.
Check multiple implementation
<?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