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

CloneableFinalInstantiable
ExtendsphpDocumentor\Reflection\DocBlock\Tags\BaseTag
ImplementsphpDocumentor\Reflection\DocBlock\Tag
phpDocumentor\Reflection\DocBlock\Tags\Factory\StaticMethod
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>
  • 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>
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
ConfigurationNumbers (0-9.) only