PHP 클래스 BetterReflection\Reflection\ReflectionObject

상속: extends ReflectionClass
파일 보기 프로젝트 열기: roave/better-reflection 1 사용 예제들

공개 메소드들

메소드 설명
__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 )