Copied!

Reflection class for a {@}template tag in a Docblock.

CloneableFinalInstantiable
Methods
public __construct(string $templateName, ?phpDocumentor\Reflection\Type $bound = NULL, ?phpDocumentor\Reflection\Type $default = NULL, ?phpDocumentor\Reflection\DocBlock\Description $description = NULL)
 
  • param non-empty-string $templateName
public __toString() : string
public static create(string $body) : ?phpDocumentor\Reflection\DocBlock\Tag
 
  • deprecated Create using static factory is deprecated, this method should not be called directly by library consumers
public getBound() : ?phpDocumentor\Reflection\Type
public getDefault() : ?phpDocumentor\Reflection\Type
public phpDocumentor\Reflection\DocBlock\Tags\BaseTag::getDescription() : ?phpDocumentor\Reflection\DocBlock\Description
public phpDocumentor\Reflection\DocBlock\Tags\BaseTag::getName() : string
 

Gets the name of this tag.

  • return string The name of this tag.
public getTemplateName() : string
public phpDocumentor\Reflection\DocBlock\Tags\BaseTag::render(?phpDocumentor\Reflection\DocBlock\Tags\Formatter $formatter = NULL) : string
Properties
protected ?phpDocumentor\Reflection\DocBlock\Description phpDocumentor\Reflection\DocBlock\Tags\BaseTag::$description = NULL
 
  • var \Description|null Description of the tag.
protected string phpDocumentor\Reflection\DocBlock\Tags\BaseTag::$name = ''
 
  • var string Name of the tag
Properties
private ?phpDocumentor\Reflection\Type $bound
 
  • var ?\Type The real type
private ?phpDocumentor\Reflection\Type $default
private string $templateName
 
  • var non-empty-string
Methods
public static create(string $body) : ?phpDocumentor\Reflection\DocBlock\Tag
 
  • deprecated Create using static factory is deprecated, this method should not be called directly by library consumers
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration