Parses a tag definition for a DocBlock.

CloneableInstantiable
ExtendsphpDocumentor\Reflection\DocBlock\Tags\BaseTag
ImplementsphpDocumentor\Reflection\DocBlock\Tag
phpDocumentor\Reflection\DocBlock\Tags\Factory\StaticMethod
Methods
public __construct( $name, ?phpDocumentor\Reflection\DocBlock\Description $description = NULL)
 
Parses a tag and populates the member variables.

    public __toString()
     
    Returns the tag as a serialized string

    • return string
    public static create( $body, $name = '', ?phpDocumentor\Reflection\DocBlock\DescriptionFactory $descriptionFactory = NULL, ?phpDocumentor\Reflection\Types\Context $context = NULL)
     
    Creates a new tag that represents any unknown tag type.

    • return static
    public phpDocumentor\Reflection\DocBlock\Tags\BaseTag::getDescription()
    public phpDocumentor\Reflection\DocBlock\Tags\BaseTag::getName()
     
    Gets the name of this tag.

    • return string The name of this tag.
    public phpDocumentor\Reflection\DocBlock\Tags\BaseTag::render(?phpDocumentor\Reflection\DocBlock\Tags\Formatter $formatter = NULL)
    Properties
    protected phpDocumentor\Reflection\DocBlock\Tags\BaseTag::$description
     


    • var Description|null Description of the tag.
    protected phpDocumentor\Reflection\DocBlock\Tags\BaseTag::$name
     


    • var string Name of the tag
    Methods
    private validateTagName( $name)
     
    Validates if the tag name matches the expected format, otherwise throws an exception.

    • return void
    Methods
    public static create( $body, $name = '', ?phpDocumentor\Reflection\DocBlock\DescriptionFactory $descriptionFactory = NULL, ?phpDocumentor\Reflection\Types\Context $context = NULL)
     
    Creates a new tag that represents any unknown tag type.

    • return static
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only