I have the interface:
interface AbstractMapper { public function objectToArray(ActiveRecordBase $object); }
And classes:
Another way of implementing this would be:
class Executor { public function objectToArray(AbstractMapper $var) { $this->convert($var); } private function convert(Product $var) { ... } }