/** * 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 = []; }
/** * 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 = []; }