Copied!

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

CloneableFinalInstantiable
Methods
public __construct(string $methodName, array $arguments = [], ?phpDocumentor\Reflection\Type $returnType = NULL, bool $static = false, ?phpDocumentor\Reflection\DocBlock\Description $description = NULL)
 
  • param array<int,array<string,\Type|string>> $arguments
  • phpstan-param array<int, array{name: string, type: Type}|string> $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<int,array<string,\Type|string>>
  • phpstan-return array<int, array{name: string, type: Type}>
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 = NULL
 
  • var \Description|null Description of the tag.
protected $name = 'method'
 
  • var string
Properties
private $arguments = NULL
 
  • phpstan-var array<int, array{name: string, type: Type}>
  • var array<int,array<string,\Type|string>>
private $isStatic = NULL
 
  • var bool
private $methodName = NULL
 
  • var string
private $returnType = NULL
 
  • var \Type
Methods
private filterArguments(array $arguments = []) : array
 
  • param array[]|string[] $arguments
  • phpstan-param array<int, array{name: string, type: Type}|string> $arguments
  • return array[]
  • phpstan-return array<int, array{name: string, type: Type}>
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
© 2023 Bruce Wells
Search Namespaces \ Classes
Configuration