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 getLongDescription(string $class, string $property, array $context = []) : ?string |
| public getShortDescription(string $class, string $property, array $context = []) : ?string |
| 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 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 getDescriptionsFromDocNode(PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode $docNode) : array A docblock is split into a template marker, a short description, an optional long description and a tags section.
This method returns the short and the long descriptions.
|
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 |