Ejemplo n.º 1
0
 public function setObject(TypeInterface $object)
 {
     if (!$object instanceof ExternalInterface) {
         throw new Exception\InvalidArgumentException(sprintf('Expected ExternalInterface but got `%s`', get_class($object)));
     }
     return parent::setObject($object);
 }