Exemplo n.º 1
0
 /**
  * @param Class_ $parent
  * @return $this
  */
 public function setParent(Class_ $parent)
 {
     if ($parent->getName() !== $this->fqParent) {
         throw new \RuntimeException('Expected class ' . $this->fqParent . ' but got ' . $parent->getName() . ' instead');
     }
     $this->parent = $parent;
     return $this;
 }