Copied!

Extracts data using PHPStan parser.

Cloneable Final Instantiable
Methods
public __construct ( ? array $mutatorPrefixes = NULL , ? array $accessorPrefixes = NULL , ? array $arrayMutatorPrefixes = NULL )
 
  • param list | null $mutatorPrefixes
  • param list | null $accessorPrefixes
  • param list | null $arrayMutatorPrefixes
public getTypes ( string $class , string $property , array $context = [ ] ) : ? array
public getTypesFromConstructor ( string $class , string $property ) : ? array
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 $accessorPrefixes
private $arrayMutatorPrefixes
private $docBlocks
 
private $lexer
 
  • var Lexer
private $mutatorPrefixes
private $nameScopeFactory
 
  • var NameScopeFactory
private $phpDocParser
 
  • var 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
 
  • return
private getDocBlockFromConstructor ( string $class , string $property ) : ? PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode
private getDocBlockFromMethod ( string $class , string $ucFirstProperty , int $type ) : ? array
 
  • return
private getDocBlockFromProperty ( string $class , string $property ) : ? array
 
  • return
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration