phpDocumentor\Reflection\DocBlock\Tag::getName PHP Method

getName() public method

Gets the name of this tag.
public getName ( ) : string
return string The name of this tag.
    public function getName()
    {
        return $this->tag;
    }

Usage Example

 /**
  * Formats the given tag to return a simple plain text version.
  *
  * @param Tag $tag
  *
  * @return string
  */
 public function format(Tag $tag)
 {
     return '@' . $tag->getName() . ' ' . (string) $tag;
 }
All Usage Examples Of phpDocumentor\Reflection\DocBlock\Tag::getName