/** * Returns the link for the given reflector. * * Because the link tag and the see tag have different methods to acquire the link text we abstract that into this * method. * * @param Tag\SeeTag|Tag\LinkTag $tagReflector * * @return string */ private function getLinkText($tagReflector) { return $tagReflector instanceof Tag\SeeTag ? $tagReflector->getReference() : $tagReflector->getLink(); }