/** * Constructor * * @param str text The contents of the tag * @param str[] data Reference to doc comment data array * @param RootDoc root The root object */ function throwsTag($text, &$data, &$root) { $explode = preg_split('/[ \\t]+/', $text); $this->_link = array_shift($explode); $data['throws'][$this->_link] = $this->_link; parent::tag('@throws', join(' ', $explode), $root); }
/** * Constructor * * @param str text The contents of the tag * @param str[] data Reference to doc comment data array * @param RootDoc root The root object */ function linkPlainTag($text, &$data, &$root) { $explode = preg_split('/[ \\t]+/', $text); $link = array_shift($explode); if ($link) { $this->_link = $link; $text = join(' ', $explode); } else { $this->_link = NULL; } parent::tag('@linkplain', $text, $root); }