Copied!

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

CloneableFinalInstantiable
Methods
public __construct( $startingLine, $lineCount = NULL, ?phpDocumentor\Reflection\DocBlock\Description $description = NULL)
 
  • param int|string $startingLine should be a to int convertible value
  • param int|string|null $lineCount should be a to int convertible value
public __toString() : string
public static create(string $body, ?phpDocumentor\Reflection\DocBlock\DescriptionFactory $descriptionFactory = NULL, ?phpDocumentor\Reflection\Types\Context $context = NULL) : self
public phpDocumentor\Reflection\DocBlock\Tags\BaseTag::getDescription() : ?phpDocumentor\Reflection\DocBlock\Description
public getLineCount() : ?int
 

Returns the number of lines.

  • return int|null The number of lines, relative to the starting line. NULL means "to the end".
public phpDocumentor\Reflection\DocBlock\Tags\BaseTag::getName() : string
 

Gets the name of this tag.

  • return string The name of this tag.
public getStartingLine() : int
 

Gets the starting line.

  • return int The starting line, relative to the structural element's location.
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 $name = 'source'
Properties
private ?int $lineCount = NULL
 
  • var int|null The number of lines, relative to the starting line. NULL means "to the end".
private int $startingLine
 
  • var int The starting line, relative to the structural element's location.
Methods
public static create(string $body, ?phpDocumentor\Reflection\DocBlock\DescriptionFactory $descriptionFactory = NULL, ?phpDocumentor\Reflection\Types\Context $context = NULL) : self
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration