Пример #1
0
 /**
  * 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());
 }
Пример #2
0
 /**
  * @param InterfaceType $type
  * @return $this
  */
 public function addInterface(InterfaceType $type)
 {
     $this->interfaces[$type->getName()] = $type;
     return $this;
 }