Reflection class for an {@}method in a Docblock.

Cloneable Final Instantiable
Methods
public __construct ( string $methodName , array $arguments = [ ] , ? phpDocumentor\Reflection\Type $returnType = NULL , bool $static = false , ? phpDocumentor\Reflection\DocBlock\Description $description = NULL )
 
  • phpstan-param array $arguments
public __toString () : string
public static create ( string $body , ? phpDocumentor\Reflection\TypeResolver $typeResolver = NULL , ? phpDocumentor\Reflection\DocBlock\DescriptionFactory $descriptionFactory = NULL , ? phpDocumentor\Reflection\Types\Context $context = NULL ) : self
public getArguments () : array
 
  • return array | string>>
  • phpstan-return array
public phpDocumentor\Reflection\DocBlock\Tags\BaseTag :: getDescription () : phpDocumentor\Reflection\DocBlock\Description
public getMethodName () : string
 

Retrieves the method name.

public phpDocumentor\Reflection\DocBlock\Tags\BaseTag :: getName () : string
 

Gets the name of this tag.

  • return string The name of this tag.
public getReturnType () : phpDocumentor\Reflection\Type
public isStatic () : bool
 

Checks whether the method tag describes a static method or not.

  • return bool TRUE if the method declaration is for a static method, FALSE otherwise.
public phpDocumentor\Reflection\DocBlock\Tags\BaseTag :: render ( ? phpDocumentor\Reflection\DocBlock\Tags\Formatter $formatter = NULL ) : string
Properties
protected phpDocumentor\Reflection\DocBlock\Tags\BaseTag :: $description
 
  • var Description | null Description of the tag.
protected $name
 
  • var string
Properties
private $arguments
 
  • phpstan-var array
  • var array | string>>
private $isStatic
 
  • var bool
private $methodName
 
  • var string
private $returnType
 
  • var Type
Methods
private filterArguments ( array $arguments = [ ] ) : array
 
  • return array []
  • phpstan-param array $arguments
  • phpstan-return array
private static stripRestArg ( string $argument ) : string
Methods
public static create ( string $body , ? phpDocumentor\Reflection\TypeResolver $typeResolver = NULL , ? phpDocumentor\Reflection\DocBlock\DescriptionFactory $descriptionFactory = NULL , ? phpDocumentor\Reflection\Types\Context $context = NULL ) : self
private static stripRestArg ( string $argument ) : string
© 2020 Bruce Wells
Search Namespaces \ Classes
Configuration Numbers (0-9.) only