class ClassIntrospection extends AbstractIntrospection implements ConstantAwareAccessorsInterface, IdentityAwareAccessorsInterface, InterfaceAwareAccessorsInterface, LocationAwareAccessorsInterface, MethodAwareAccessorsInterface, ModifiersAwareAccessorsInterface, PropertyAwareAccessorsInterface

Class ClassIntrospection.

Traits

Class ConstantAwareAccessorsTrait.
Class IdentityAwareAccessorsTrait.
Class InterfaceAwareAccessorsTrait.
Class LocationAwareAccessorsTrait.
Class ModifiersAwareAccessorsTrait.
Class MethodAwareAccessorsTrait.
Class PropertyAwareAccessorsTrait.
Class IdentityNameAwareAccessorsTrait.
Class IdentityNamespaceAwareAccessorsTrait.
Class IdentityInheritanceAwareAccessorsTrait.
Class ModifiersAwareAccessorsTrait.
Class DocBlockAwareAccessorsTrait.

Methods

string
docBlock()

No description

__construct( string $class, null|object $bindTo = null, ResultResolver $resolver = null)

No description

string
nameQualified()

No description

string
__toString()

No description

bool
hasConstant( string $name)

No description

getConstant( string $name)

No description

sortConstants( Closure $sort, mixed $extra)

No description

visitConstants( Closure $visit, mixed $extra)

No description

filterConstants( Closure $predicate, mixed $extra)

No description

filterOneConstant( Closure $predicate, mixed $extra)

No description

matchConstants( mixed $match, string $func = '__toString')

No description

matchOneConstant( mixed $match, string $func = '__toString')

No description

string
nameUnQualified()

No description

string
name( bool $qualified = false)

No description

string
namespaceName()

No description

bool
extendsClass( object|string $class)

No description

bool
implementsInterface( string $interface)

No description

bool
usesTrait( string $trait)

No description

sortInterfaces( Closure $sort, mixed $extra)

No description

visitInterfaces( Closure $visit, mixed $extra)

No description

filterInterfaces( Closure $predicate, mixed $extra)

No description

filterOneInterface( Closure $predicate, mixed $extra)

No description

matchInterfaces( mixed $match, string $func = '__toString')

No description

matchOneInterface( mixed $match, string $func = '__toString')

No description

int
lineStart()

No description

int
lineEnd()

No description

int
modifiers()

No description

bool
isAnonymous()

No description

bool
isClonable()

No description

bool
isInstance($instance)

No description

bool
isInstantiable()

No description

bool
isInterface()

No description

bool
isIterateable()

No description

bool
isTrait()

No description

bool
isAbstract()

No description

bool
isFinal()

No description

bool
isInternal()

No description

bool
isUserDefined()

No description

bool
hasMethod( string $name)

No description

getMethod( string $name)

No description

methods( null|int $mask = null)

No description

sortMethods( Closure $sort, null|int $mask = null, mixed $extra)

No description

visitMethods( Closure $visit, null|int $mask = null, mixed $extra)

No description

filterMethods( Closure $predicate, null|int $mask = null, mixed $extra)

No description

filterOneMethod( Closure $predicate, null|int $mask = null, mixed $extra)

No description

matchMethods( mixed $match, string $func = '__toString', null|int $mask = null)

No description

matchOneMethod( mixed $match, string $func = '__toString', null|int $mask = null)

No description

bool
hasProperty( string $name)

No description

getProperty( string $name)

No description

properties( null|int $mask = null)

No description

sortProperties( Closure $sort, null|int $mask = null, mixed $extra)

No description

visitProperties( Closure $visit, null|int $mask = null, mixed $extra)

No description

filterProperties( Closure $predicate, null|int $mask = null, mixed $extra)

No description

filterOneProperty( Closure $predicate, null|int $mask = null, mixed $extra)

No description

matchProperties( mixed $match, string $func = '__toString', null|int $mask = null)

No description

matchOneProperty( mixed $match, string $func = '__toString', null|int $mask = null)

No description

static  string
export( string $class)

No description

Details

in DocBlockAwareAccessorsTrait at line line 28
string docBlock()

Return Value

string

at line line 53
__construct( string $class, null|object $bindTo = null, ResultResolver $resolver = null)

Parameters

string $class
null|object $bindTo
ResultResolver $resolver

in PropertyAwareAccessorsTrait at line line 32
abstract ResolverInterface resolver()

Return Value

ResolverInterface

abstract string nameQualified()

Return Value

string

in AbstractIntrospection at line line 74
final string __toString()

Return Value

string

in ConstantAwareAccessorsTrait at line line 39
bool hasConstant( string $name)

Parameters

string $name

Return Value

bool

in ConstantAwareAccessorsTrait at line line 51
ConstantIntrospection getConstant( string $name)

Parameters

string $name

Return Value

ConstantIntrospection

Exceptions

InvalidArgumentException

in ConstantAwareAccessorsTrait at line line 63
ConstantIntrospection[] constants()

Return Value

ConstantIntrospection[]

in ConstantAwareAccessorsTrait at line line 81
ConstantIntrospection[] sortConstants( Closure $sort, mixed $extra)

Parameters

Closure $sort
mixed $extra

Return Value

ConstantIntrospection[]

in ConstantAwareAccessorsTrait at line line 92
ConstantIntrospection[]|mixed[] visitConstants( Closure $visit, mixed $extra)

Parameters

Closure $visit
mixed $extra

Return Value

ConstantIntrospection[]|mixed[]

in ConstantAwareAccessorsTrait at line line 103
ConstantIntrospection[] filterConstants( Closure $predicate, mixed $extra)

Parameters

Closure $predicate
mixed $extra

Return Value

ConstantIntrospection[]

in ConstantAwareAccessorsTrait at line line 114
null|ConstantIntrospection filterOneConstant( Closure $predicate, mixed $extra)

Parameters

Closure $predicate
mixed $extra

Return Value

null|ConstantIntrospection

in ConstantAwareAccessorsTrait at line line 125
ConstantIntrospection[] matchConstants( mixed $match, string $func = '__toString')

Parameters

mixed $match
string $func

Return Value

ConstantIntrospection[]

in ConstantAwareAccessorsTrait at line line 136
null|ConstantIntrospection matchOneConstant( mixed $match, string $func = '__toString')

Parameters

mixed $match
string $func

Return Value

null|ConstantIntrospection

abstract string nameUnQualified()

Return Value

string

string name( bool $qualified = false)

Parameters

bool $qualified

Return Value

string

string namespaceName()

Return Value

string

string[] namespaceSections()

Return Value

string[]

bool extendsClass( object|string $class)

Parameters

object|string $class

Return Value

bool

bool implementsInterface( string $interface)

Parameters

string $interface

Return Value

bool

bool usesTrait( string $trait)

Parameters

string $trait

Return Value

bool

in InterfaceAwareAccessorsTrait at line line 41
InterfaceIntrospection getInterface( string $name)

Parameters

string $name

Return Value

InterfaceIntrospection

Exceptions

InvalidArgumentException

in InterfaceAwareAccessorsTrait at line line 57
InterfaceIntrospection[] interfaces()

Return Value

InterfaceIntrospection[]

in InterfaceAwareAccessorsTrait at line line 75
InterfaceIntrospection[] sortInterfaces( Closure $sort, mixed $extra)

Parameters

Closure $sort
mixed $extra

Return Value

InterfaceIntrospection[]

in InterfaceAwareAccessorsTrait at line line 86
InterfaceIntrospection[]|mixed visitInterfaces( Closure $visit, mixed $extra)

Parameters

Closure $visit
mixed $extra

Return Value

InterfaceIntrospection[]|mixed

in InterfaceAwareAccessorsTrait at line line 97
InterfaceIntrospection[] filterInterfaces( Closure $predicate, mixed $extra)

Parameters

Closure $predicate
mixed $extra

Return Value

InterfaceIntrospection[]

in InterfaceAwareAccessorsTrait at line line 108
InterfaceIntrospection|null filterOneInterface( Closure $predicate, mixed $extra)

Parameters

Closure $predicate
mixed $extra

Return Value

InterfaceIntrospection|null

in InterfaceAwareAccessorsTrait at line line 119
InterfaceIntrospection[] matchInterfaces( mixed $match, string $func = '__toString')

Parameters

mixed $match
string $func

Return Value

InterfaceIntrospection[]

in InterfaceAwareAccessorsTrait at line line 130
null|InterfaceIntrospection matchOneInterface( mixed $match, string $func = '__toString')

Parameters

mixed $match
string $func

Return Value

null|InterfaceIntrospection

in LocationAwareAccessorsTrait at line line 28
SplFileInfo file()

Return Value

SplFileInfo

in LocationAwareAccessorsTrait at line line 36
int lineStart()

Return Value

int

in LocationAwareAccessorsTrait at line line 44
int lineEnd()

Return Value

int

in ModifiersAwareAccessorsTrait at line line 28
int modifiers()

Return Value

int

in ModifiersAwareAccessorsTrait at line line 27
bool isAnonymous()

Return Value

bool

in ModifiersAwareAccessorsTrait at line line 35
bool isClonable()

Return Value

bool

in ModifiersAwareAccessorsTrait at line line 43
bool isInstance($instance)

Parameters

$instance

Return Value

bool

in ModifiersAwareAccessorsTrait at line line 51
bool isInstantiable()

Return Value

bool

in ModifiersAwareAccessorsTrait at line line 59
bool isInterface()

Return Value

bool

in ModifiersAwareAccessorsTrait at line line 67
bool isIterateable()

Return Value

bool

in ModifiersAwareAccessorsTrait at line line 75
bool isTrait()

Return Value

bool

in ModifiersAwareAccessorsTrait at line line 83
bool isAbstract()

Return Value

bool

in ModifiersAwareAccessorsTrait at line line 91
bool isFinal()

Return Value

bool

in ModifiersAwareAccessorsTrait at line line 99
bool isInternal()

Return Value

bool

in ModifiersAwareAccessorsTrait at line line 107
bool isUserDefined()

Return Value

bool

in MethodAwareAccessorsTrait at line line 39
bool hasMethod( string $name)

Parameters

string $name

Return Value

bool

in MethodAwareAccessorsTrait at line line 51
MethodIntrospection getMethod( string $name)

Parameters

string $name

Return Value

MethodIntrospection

Exceptions

InvalidArgumentException

in MethodAwareAccessorsTrait at line line 65
MethodIntrospection[] methods( null|int $mask = null)

Parameters

null|int $mask

Return Value

MethodIntrospection[]

in MethodAwareAccessorsTrait at line line 80
MethodIntrospection[] publicMethods()

Return Value

MethodIntrospection[]

in MethodAwareAccessorsTrait at line line 88
MethodIntrospection[] protectedMethods()

Return Value

MethodIntrospection[]

in MethodAwareAccessorsTrait at line line 96
MethodIntrospection[] privateMethods()

Return Value

MethodIntrospection[]

in MethodAwareAccessorsTrait at line line 108
MethodIntrospection[] sortMethods( Closure $sort, null|int $mask = null, mixed $extra)

Parameters

Closure $sort
null|int $mask
mixed $extra

Return Value

MethodIntrospection[]

in MethodAwareAccessorsTrait at line line 120
MethodIntrospection[]|mixed[] visitMethods( Closure $visit, null|int $mask = null, mixed $extra)

Parameters

Closure $visit
null|int $mask
mixed $extra

Return Value

MethodIntrospection[]|mixed[]

in MethodAwareAccessorsTrait at line line 132
MethodIntrospection[] filterMethods( Closure $predicate, null|int $mask = null, mixed $extra)

Parameters

Closure $predicate
null|int $mask
mixed $extra

Return Value

MethodIntrospection[]

in MethodAwareAccessorsTrait at line line 144
MethodIntrospection|null filterOneMethod( Closure $predicate, null|int $mask = null, mixed $extra)

Parameters

Closure $predicate
null|int $mask
mixed $extra

Return Value

MethodIntrospection|null

in MethodAwareAccessorsTrait at line line 156
MethodIntrospection[] matchMethods( mixed $match, string $func = '__toString', null|int $mask = null)

Parameters

mixed $match
string $func
null|int $mask

Return Value

MethodIntrospection[]

in MethodAwareAccessorsTrait at line line 168
null|MethodIntrospection matchOneMethod( mixed $match, string $func = '__toString', null|int $mask = null)

Parameters

mixed $match
string $func
null|int $mask

Return Value

null|MethodIntrospection

in PropertyAwareAccessorsTrait at line line 39
bool hasProperty( string $name)

Parameters

string $name

Return Value

bool

in PropertyAwareAccessorsTrait at line line 51
PropertyIntrospection getProperty( string $name)

Parameters

string $name

Return Value

PropertyIntrospection

Exceptions

InvalidArgumentException

in PropertyAwareAccessorsTrait at line line 65
PropertyIntrospection[] properties( null|int $mask = null)

Parameters

null|int $mask

Return Value

PropertyIntrospection[]

in PropertyAwareAccessorsTrait at line line 80
PropertyIntrospection[] publicProperties()

Return Value

PropertyIntrospection[]

in PropertyAwareAccessorsTrait at line line 88
PropertyIntrospection[] protectedProperties()

Return Value

PropertyIntrospection[]

in PropertyAwareAccessorsTrait at line line 96
PropertyIntrospection[] privateProperties()

Return Value

PropertyIntrospection[]

in PropertyAwareAccessorsTrait at line line 108
PropertyIntrospection[] sortProperties( Closure $sort, null|int $mask = null, mixed $extra)

Parameters

Closure $sort
null|int $mask
mixed $extra

Return Value

PropertyIntrospection[]

in PropertyAwareAccessorsTrait at line line 120
PropertyIntrospection[]|mixed[] visitProperties( Closure $visit, null|int $mask = null, mixed $extra)

Parameters

Closure $visit
null|int $mask
mixed $extra

Return Value

PropertyIntrospection[]|mixed[]

in PropertyAwareAccessorsTrait at line line 132
PropertyIntrospection[] filterProperties( Closure $predicate, null|int $mask = null, mixed $extra)

Parameters

Closure $predicate
null|int $mask
mixed $extra

Return Value

PropertyIntrospection[]

in PropertyAwareAccessorsTrait at line line 144
PropertyIntrospection|null filterOneProperty( Closure $predicate, null|int $mask = null, mixed $extra)

Parameters

Closure $predicate
null|int $mask
mixed $extra

Return Value

PropertyIntrospection|null

in PropertyAwareAccessorsTrait at line line 156
PropertyIntrospection[] matchProperties( mixed $match, string $func = '__toString', null|int $mask = null)

Parameters

mixed $match
string $func
null|int $mask

Return Value

PropertyIntrospection[]

in PropertyAwareAccessorsTrait at line line 168
null|PropertyIntrospection matchOneProperty( mixed $match, string $func = '__toString', null|int $mask = null)

Parameters

mixed $match
string $func
null|int $mask

Return Value

null|PropertyIntrospection

at line line 68
static string export( string $class)

Parameters

string $class

Return Value

string