/** * @param string $propertyName * @param array $types * @param string $description */ public function __construct($propertyName = null, $types = [], $description = null) { if (!empty($propertyName)) { $this->setPropertyName($propertyName); } parent::__construct($types, $description); }
/** * @param string $methodName * @param array $types * @param string $description * @param bool $isStatic */ public function __construct($methodName = null, $types = array(), $description = null, $isStatic = false) { if (!empty($methodName)) { $this->setMethodName($methodName); } $this->setIsStatic((bool) $isStatic); parent::__construct($types, $description); }