PHP Class PHPStan\Reflection\Php\PhpClassReflectionExtension

Inheritance: implements PHPStan\Reflection\PropertiesClassReflectionExtension, implements PHPStan\Reflection\MethodsClassReflectionExtension, implements PHPStan\Reflection\BrokerAwareClassReflectionExtension
Show file Open project: phpstan/phpstan Class Usage Examples

Public Methods

Method Description
__construct ( PHPStan\Reflection\Php\PhpMethodReflectionFactory $methodReflectionFactory, FileTypeMapper $fileTypeMapper )
getMethod ( ClassReflection $classReflection, string $methodName ) : PHPStan\Reflection\MethodReflection
getProperty ( ClassReflection $classReflection, string $propertyName ) : PHPStan\Reflection\PropertyReflection
hasMethod ( ClassReflection $classReflection, string $methodName ) : boolean
hasProperty ( ClassReflection $classReflection, string $propertyName ) : boolean
setBroker ( Broker $broker )

Private Methods

Method Description
createMethods ( ClassReflection $classReflection ) : array
createProperties ( ClassReflection $classReflection ) : array
getMethodParameterAnnotationTypeString ( array $phpDocParams, ReflectionParameter $parameterReflection ) : string | null
getPhpDocParamsFromMethod ( ReflectionMethod $reflectionMethod ) : array
getPropertyAnnotationTypeString ( ReflectionProperty $propertyReflection ) : string | null
getReturnTypeStringFromMethod ( ReflectionMethod $reflectionMethod ) : string | null

Method Details

__construct() public method

public __construct ( PHPStan\Reflection\Php\PhpMethodReflectionFactory $methodReflectionFactory, FileTypeMapper $fileTypeMapper )
$methodReflectionFactory PHPStan\Reflection\Php\PhpMethodReflectionFactory
$fileTypeMapper PHPStan\Type\FileTypeMapper

getMethod() public method

public getMethod ( ClassReflection $classReflection, string $methodName ) : PHPStan\Reflection\MethodReflection
$classReflection PHPStan\Reflection\ClassReflection
$methodName string
return PHPStan\Reflection\MethodReflection

getProperty() public method

public getProperty ( ClassReflection $classReflection, string $propertyName ) : PHPStan\Reflection\PropertyReflection
$classReflection PHPStan\Reflection\ClassReflection
$propertyName string
return PHPStan\Reflection\PropertyReflection

hasMethod() public method

public hasMethod ( ClassReflection $classReflection, string $methodName ) : boolean
$classReflection PHPStan\Reflection\ClassReflection
$methodName string
return boolean

hasProperty() public method

public hasProperty ( ClassReflection $classReflection, string $propertyName ) : boolean
$classReflection PHPStan\Reflection\ClassReflection
$propertyName string
return boolean

setBroker() public method

public setBroker ( Broker $broker )
$broker PHPStan\Broker\Broker