interface MainInterface
{
public function method();
}
class MainClass implements MainInterface
{
public function method()
{
}
}
class FirstSubClass extends MainClass
{
public function method()
{
// Another implementation of the method.
}
}
class SecondSubClass extends MainClass
{
public function method()
{
// Another implementation of the method.
}
}