/**
  * @param array|string $options
  */
 public function __construct($options = array())
 {
     if (is_string($options)) {
         $options = array('path' => $options);
     }
     parent::__construct($options);
 }
예제 #2
0
 /**
  * @inheritdoc
  * @return UseInterface
  */
 public function setParent(ElementInterface $parent)
 {
     if (!$parent instanceof PhpClassInterface) {
         throw new \InvalidArgumentException('Only accept instances from ClassGeneration\\PhpClassInterface');
     }
     return parent::setParent($parent);
 }