PHP Class PHPStan\Reflection\ClassReflection

ファイルを表示 Open project: phpstan/phpstan Class Usage Examples

Public Methods

Method Description
__construct ( Broker $broker, array $propertiesClassReflectionExtensions, array $methodsClassReflectionExtensions, ReflectionClass $reflection )
getConstant ( string $name ) : PHPStan\Reflection\ClassConstantReflection
getInterfaces ( ) : array
getMethod ( string $methodName ) : MethodReflection
getName ( ) : string
getNativeReflection ( ) : ReflectionClass
getParentClass ( ) : boolean | ClassReflection
getParentClassesNames ( ) : array
getParents ( ) : array
getProperty ( string $propertyName, Scope $scope = null ) : PHPStan\Reflection\PropertyReflection
hasConstant ( string $name ) : boolean
hasMethod ( string $methodName ) : boolean
hasProperty ( string $propertyName ) : boolean
hasTraitUse ( string $traitName ) : boolean
isAbstract ( ) : boolean
isInterface ( ) : boolean
isSubclassOf ( string $className ) : boolean
isTrait ( ) : boolean

Private Methods

Method Description
getTraitNames ( ) : array

Method Details

__construct() public method

public __construct ( Broker $broker, array $propertiesClassReflectionExtensions, array $methodsClassReflectionExtensions, ReflectionClass $reflection )
$broker PHPStan\Broker\Broker
$propertiesClassReflectionExtensions array
$methodsClassReflectionExtensions array
$reflection ReflectionClass

getConstant() public method

public getConstant ( string $name ) : PHPStan\Reflection\ClassConstantReflection
$name string
return PHPStan\Reflection\ClassConstantReflection

getInterfaces() public method

public getInterfaces ( ) : array
return array

getMethod() public method

public getMethod ( string $methodName ) : MethodReflection
$methodName string
return MethodReflection

getName() public method

public getName ( ) : string
return string

getNativeReflection() public method

public getNativeReflection ( ) : ReflectionClass
return ReflectionClass

getParentClass() public method

public getParentClass ( ) : boolean | ClassReflection
return boolean | ClassReflection

getParentClassesNames() public method

public getParentClassesNames ( ) : array
return array

getParents() public method

public getParents ( ) : array
return array

getProperty() public method

public getProperty ( string $propertyName, Scope $scope = null ) : PHPStan\Reflection\PropertyReflection
$propertyName string
$scope PHPStan\Analyser\Scope
return PHPStan\Reflection\PropertyReflection

hasConstant() public method

public hasConstant ( string $name ) : boolean
$name string
return boolean

hasMethod() public method

public hasMethod ( string $methodName ) : boolean
$methodName string
return boolean

hasProperty() public method

public hasProperty ( string $propertyName ) : boolean
$propertyName string
return boolean

hasTraitUse() public method

public hasTraitUse ( string $traitName ) : boolean
$traitName string
return boolean

isAbstract() public method

public isAbstract ( ) : boolean
return boolean

isInterface() public method

public isInterface ( ) : boolean
return boolean

isSubclassOf() public method

public isSubclassOf ( string $className ) : boolean
$className string
return boolean

isTrait() public method

public isTrait ( ) : boolean
return boolean