Copied!

Extracts data using PHPStan parser.

CloneableFinalInstantiable
Methods
public __construct(?array $mutatorPrefixes = NULL, ?array $accessorPrefixes = NULL, ?array $arrayMutatorPrefixes = NULL, bool $allowPrivateAccess = true)
 
  • param list<string>|null $mutatorPrefixes
  • param list<string>|null $accessorPrefixes
  • param list<string>|null $arrayMutatorPrefixes
public getType(string $class, string $property, array $context = []) : ?Symfony\Component\TypeInfo\Type
public getTypeFromConstructor(string $class, string $property) : ?Symfony\Component\TypeInfo\Type
public getTypes(string $class, string $property, array $context = []) : ?array
public getTypesFromConstructor(string $class, string $property) : ?array
 
  • return \LegacyType[]|null
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 bool $allowPrivateAccess
private array $arrayMutatorPrefixes
private array $contexts = []
 
  • var array<string,\NameScope>
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
private Symfony\Component\TypeInfo\TypeResolver\StringTypeResolver $stringTypeResolver
private Symfony\Component\TypeInfo\TypeContext\TypeContextFactory $typeContextFactory
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
 
  • 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