PHP Класс BetterReflection\Reflection\ReflectionObject

Наследование: extends ReflectionClass
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__clone ( )
addMethod ( $methodName )
addProperty ( $methodName, $visibility = 'public', $static = false )
createFromInstance ( object $object ) : ReflectionClass Pass an instance of an object to this method to reflect it
createFromName ( $className ) Cannot instantiate this way, use ReflectionObject::createFromInstance
createFromNode ( BetterReflection\Reflector\Reflector $reflector, ClassLike $node, BetterReflection\SourceLocator\Located\LocatedSource $locatedSource, Namespace_ $namespace = null ) Cannot instantiate this way, use ReflectionObject::createFromInstance
export ( object $instance = null ) : string Create a reflection and return the string representation of a class instance
getAst ( )
getConstant ( $name )
getConstants ( )
getConstructor ( )
getDefaultProperties ( )
getDocComment ( )
getEndLine ( )
getFileName ( )
getImmediateInterfaces ( )
getImmediateMethods ( )
getInterfaceNames ( )
getInterfaces ( )
getLocatedSource ( )
getMethod ( $methodName )
getMethods ( )
getModifiers ( )
getName ( )
getNamespaceName ( )
getParentClass ( )
getProperties ( )
getProperty ( $name )
getShortName ( )
getStartLine ( )
getStaticPropertyValue ( $propertyName )
getTraitAliases ( )
getTraitNames ( )
getTraits ( )
hasConstant ( $name )
hasMethod ( $methodName )
hasProperty ( $name )
implementsInterface ( $interfaceName )
inNamespace ( )
isAbstract ( )
isCloneable ( )
isFinal ( )
isInstance ( $object )
isInstantiable ( )
isInterface ( )
isInternal ( )
isIterateable ( )
isSubclassOf ( $className )
isTrait ( )
isUserDefined ( )
removeMethod ( $methodName )
removeProperty ( $methodName )
setFinal ( $isFinal )
setStaticPropertyValue ( $propertyName, $value )

Приватные методы

Метод Описание
__construct ( BetterReflection\Reflector\Reflector $reflector, ReflectionClass $reflectionClass, $object )
createPropertyNodeFromReflection ( ReflectionProperty $property, object $instance ) : Property Create an AST PropertyNode given a reflection
getRuntimeProperties ( ) : ReflectionProperty[] Reflect on runtime properties for the current instance

Описание методов

__clone() публичный Метод

public __clone ( )

addMethod() публичный Метод

public addMethod ( $methodName )

addProperty() публичный Метод

public addProperty ( $methodName, $visibility = 'public', $static = false )

createFromInstance() публичный статический Метод

Pass an instance of an object to this method to reflect it
public static createFromInstance ( object $object ) : ReflectionClass
$object object
Результат ReflectionClass

createFromName() публичный статический Метод

Cannot instantiate this way, use ReflectionObject::createFromInstance
public static createFromName ( $className )

createFromNode() публичный статический Метод

Cannot instantiate this way, use ReflectionObject::createFromInstance
public static createFromNode ( BetterReflection\Reflector\Reflector $reflector, ClassLike $node, BetterReflection\SourceLocator\Located\LocatedSource $locatedSource, Namespace_ $namespace = null )
$reflector BetterReflection\Reflector\Reflector
$node PhpParser\Node\Stmt\ClassLike
$locatedSource BetterReflection\SourceLocator\Located\LocatedSource
$namespace PhpParser\Node\Stmt\Namespace_

export() публичный статический Метод

Create a reflection and return the string representation of a class instance
public static export ( object $instance = null ) : string
$instance object
Результат string

getAst() публичный Метод

public getAst ( )

getConstant() публичный Метод

public getConstant ( $name )

getConstants() публичный Метод

public getConstants ( )

getConstructor() публичный Метод

public getConstructor ( )

getDefaultProperties() публичный Метод

getDocComment() публичный Метод

public getDocComment ( )

getEndLine() публичный Метод

public getEndLine ( )

getFileName() публичный Метод

public getFileName ( )

getImmediateInterfaces() публичный Метод

getImmediateMethods() публичный Метод

public getImmediateMethods ( )

getInterfaceNames() публичный Метод

public getInterfaceNames ( )

getInterfaces() публичный Метод

public getInterfaces ( )

getLocatedSource() публичный Метод

public getLocatedSource ( )

getMethod() публичный Метод

public getMethod ( $methodName )

getMethods() публичный Метод

public getMethods ( )

getModifiers() публичный Метод

public getModifiers ( )

getName() публичный Метод

public getName ( )

getNamespaceName() публичный Метод

public getNamespaceName ( )

getParentClass() публичный Метод

public getParentClass ( )

getProperties() публичный Метод

public getProperties ( )

getProperty() публичный Метод

public getProperty ( $name )

getShortName() публичный Метод

public getShortName ( )

getStartLine() публичный Метод

public getStartLine ( )

getStaticPropertyValue() публичный Метод

public getStaticPropertyValue ( $propertyName )

getTraitAliases() публичный Метод

public getTraitAliases ( )

getTraitNames() публичный Метод

public getTraitNames ( )

getTraits() публичный Метод

public getTraits ( )

hasConstant() публичный Метод

public hasConstant ( $name )

hasMethod() публичный Метод

public hasMethod ( $methodName )

hasProperty() публичный Метод

public hasProperty ( $name )

implementsInterface() публичный Метод

public implementsInterface ( $interfaceName )

inNamespace() публичный Метод

public inNamespace ( )

isAbstract() публичный Метод

public isAbstract ( )

isCloneable() публичный Метод

public isCloneable ( )

isFinal() публичный Метод

public isFinal ( )

isInstance() публичный Метод

public isInstance ( $object )

isInstantiable() публичный Метод

public isInstantiable ( )

isInterface() публичный Метод

public isInterface ( )

isInternal() публичный Метод

public isInternal ( )

isIterateable() публичный Метод

public isIterateable ( )

isSubclassOf() публичный Метод

public isSubclassOf ( $className )

isTrait() публичный Метод

public isTrait ( )

isUserDefined() публичный Метод

public isUserDefined ( )

removeMethod() публичный Метод

public removeMethod ( $methodName )

removeProperty() публичный Метод

public removeProperty ( $methodName )

setFinal() публичный Метод

public setFinal ( $isFinal )

setStaticPropertyValue() публичный Метод

public setStaticPropertyValue ( $propertyName, $value )