Extracts data using PHPStan parser.
- author Baptiste Leduc
CloneableFinalInstantiable
Methods |
public __construct(?array $mutatorPrefixes = NULL, ?array $accessorPrefixes = NULL, ?array $arrayMutatorPrefixes = NULL, bool $allowPrivateAccess = true)
|
public getType(string $class, string $property, array $context = []) : ?Symfony |
public getTypeFromConstructor(string $class, string $property) : ?Symfony |
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 array $accessorPrefixes |
private bool $allowPrivateAccess |
private array $arrayMutatorPrefixes |
private array $contexts = []
|
private array $docBlocks = []
|
private PHPStan\PhpDocParser\Lexer\Lexer $lexer |
private array $mutatorPrefixes |
private Symfony |
private PHPStan\PhpDocParser\Parser\PhpDocParser $phpDocParser |
private Symfony |
private Symfony |
private Symfony |
Methods |
private canAccessMemberBasedOnItsVisibility(ReflectionProperty|ReflectionMethod $member) : bool |
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
|
private getPhpDocNode(string $rawDocNode) : PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode |