Copied!

Extracts data using PHPStan parser.

CloneableFinalInstantiable
Methods
public __construct(?array $mutatorPrefixes = NULL, ?array $accessorPrefixes = NULL, ?array $arrayMutatorPrefixes = NULL)
 
  • param list<string>|null $mutatorPrefixes
  • param list<string>|null $accessorPrefixes
  • param list<string>|null $arrayMutatorPrefixes
public getTypes(string $class, string $property, array $context = []) : ?array
public getTypesFromConstructor(string $class, string $property) : ?array
Constants
private Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::ACCESSOR = 1
private Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::MUTATOR = 2
private Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::PROPERTY = 0
Properties
private array $accessorPrefixes
private array $arrayMutatorPrefixes
private array $docBlocks = []
 
  • var array<string,array{: \PhpDocNode|null, : int|null, : string|null, : string|null}>
private PHPStan\PhpDocParser\Lexer\Lexer $lexer
private array $mutatorPrefixes
private Symfony\Component\PropertyInfo\PhpStan\NameScopeFactory $nameScopeFactory
private PHPStan\PhpDocParser\Parser\PhpDocParser $phpDocParser
private Symfony\Component\PropertyInfo\Util\PhpStanTypeHelper $phpStanTypeHelper
Methods
private filterDocBlockParams(PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode $docNode, string $allowedParam) : ?PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode
private getDocBlock(string $class, string $property) : array
 
  • return array{: \PhpDocNode|null, : int|null, : string|null, : string|null}
private getDocBlockFromConstructor(string $class, string $property) : ?PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode
private getDocBlockFromMethod(string $class, string $ucFirstProperty, int $type) : ?array
 
  • return array{: \PhpDocNode, : string, : string}|null
private getDocBlockFromProperty(string $class, string $property) : ?array
 
  • return array{: \PhpDocNode, : int, : string}|null
private getPhpDocNode(string $rawDocNode) : PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration