Copied!

Extracts data using a PHPDoc parser.

Cloneable Instantiable
Constants
public Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor ::ACCESSOR = 1
public Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor ::MUTATOR = 2
public Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor ::PROPERTY = 0
Methods
public __construct ( ? phpDocumentor\Reflection\DocBlockFactoryInterface $docBlockFactory = NULL , ? array $mutatorPrefixes = NULL , ? array $accessorPrefixes = NULL , ? array $arrayMutatorPrefixes = NULL )
 
  • param string []| null $mutatorPrefixes
  • param string []| null $accessorPrefixes
  • param string []| null $arrayMutatorPrefixes
public getLongDescription ( string $class , string $property , array $context = [ ] ) : ? string
 
public getShortDescription ( string $class , string $property , array $context = [ ] ) : ? string
 
public getTypes ( string $class , string $property , array $context = [ ] ) : ? array
 
public getTypesFromConstructor ( string $class , string $property ) : ? array
 
Properties
private $accessorPrefixes
private $arrayMutatorPrefixes
private $contextFactory
private $contexts
 
  • var Context []
private $docBlockFactory
private $docBlocks
 
private $mutatorPrefixes
private $phpDocTypeHelper
Methods
private createFromReflector ( ReflectionClass $reflector ) : phpDocumentor\Reflection\Types\Context
 

Prevents a lot of redundant calls to ContextFactory::createForNamespace().

private filterDocBlockParams ( phpDocumentor\Reflection\DocBlock $docBlock , string $allowedParam ) : phpDocumentor\Reflection\DocBlock
private getDocBlock ( string $class , string $property ) : array
 
  • return
private getDocBlockFromConstructor ( string $class , string $property ) : ? phpDocumentor\Reflection\DocBlock
private getDocBlockFromMethod ( string $class , string $ucFirstProperty , int $type ) : ? array
 
  • return
private getDocBlockFromProperty ( string $class , string $property ) : ? phpDocumentor\Reflection\DocBlock
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration