Extracts data using PHPStan parser.
- author Baptiste Leduc
CloneableFinalInstantiable
Methods |
public __construct(?array $mutatorPrefixes = NULL, ?array $accessorPrefixes = NULL, ?array $arrayMutatorPrefixes = NULL)
|
public getTypes(string $class, string $property, array $context = []) : ?array |
public getTypesFromConstructor(string $class, string $property) : ?array |
Constants |
private Symfony |
private Symfony |
private Symfony |
Properties |
private $accessorPrefixes |
private $arrayMutatorPrefixes |
private $docBlocks |
private $lexer |
private $mutatorPrefixes |
private $nameScopeFactory |
private $phpDocParser |
private $phpStanTypeHelper |
Methods |
private filterDocBlockParams(PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode $docNode, string $allowedParam) : ?PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode |
private getDocBlock(string $class, string $property) : array
|
private getDocBlockFromConstructor(string $class, string $property) : ?PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode |
private getDocBlockFromMethod(string $class, string $ucFirstProperty, int $type) : ?array
|
private getDocBlockFromProperty(string $class, string $property) : ?array
|