/** * Checks whether the class implements the interface $type. * * @param InterfaceType $type The interface. * @return boolean */ public function isImplementorOf(InterfaceType $type) { return $this->getReflectionClass()->implementsInterface($type->getName()); }
/** * @param InterfaceType $type * @return $this */ public function addInterface(InterfaceType $type) { $this->interfaces[$type->getName()] = $type; return $this; }