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 = NULL |
private $arrayMutatorPrefixes = NULL |
private $docBlocks = []
|
private $lexer = NULL
|
private $mutatorPrefixes = NULL |
private $nameScopeFactory = NULL
|
private $phpDocParser = NULL
|
private $phpStanTypeHelper = NULL |
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
|