/** * Sets the type to {@throws} and lets parent parse the tag and populates the * member variables. * * @param string $type Tag identifier for this tag (should be 'return') * @param string $content Contents for this tag. */ public function __construct($type, $content) { if ('throw' !== $type) { throw new \InvalidArgumentException('Internal error, ' . __CLASS__ . ' was called with ' . $type); } parent::__construct('throws', $content); }
/** * Construct a new tag parser * @return null */ public function __construct() { parent::__construct(self::NAME); }