コード例 #1
0
 /**
  * @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);
 }