示例#1
0
 /**
  * Constructor.
  *
  * @param string $name
  * @param string $namespace
  * @param string $parent
  */
 public function __construct($name, $namespace = null, $parent = null, $docType = self::I_NATIVE)
 {
     parent::__construct($name, $namespace, $this->getTypeConstant(), $docType);
     $this->setParent($parent);
     $this->constants = [];
 }
示例#2
0
 /**
  * Constructor;
  *
  * @param string $name
  * @param string $namespace
  */
 public function __construct($name, $namespace = null, $docType = self::I_NATIVE)
 {
     parent::__construct($name, $namespace, T_TRAIT, $docType);
     $this->traits = [];
     $this->properties = [];
 }