/**
  * Creates a new Descriptor from the given Reflector.
  *
  * @param LinkTag $data
  *
  * @return LinkDescriptor
  */
 public function create($data)
 {
     $descriptor = new LinkDescriptor($data->getName());
     $descriptor->setLink($data->getLink());
     $descriptor->setDescription($data->getDescription());
     return $descriptor;
 }
 /**
  * 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();
 }