class TraitIntrospection extends AbstractIntrospection implements IdentityAwareAccessorsInterface, LocationAwareAccessorsInterface, MethodAwareAccessorsInterface, ModifiersAwareAccessorsInterface, PropertyAwareAccessorsInterface

Class TraitIntrospection.

Traits

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

Methods

string
docBlock()

No description

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

No description

string
nameQualified()

No description

string
__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

int
lineStart()

No description

int
lineEnd()

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

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
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 $trait)

No description

Details

in DocBlockAwareAccessorsTrait at line line 28
string docBlock()

Return Value

string

at line line 46
__construct( string $name, null|object $bindTo = null, ResultResolver $resolver = null)

Parameters

string $name
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

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 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 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 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 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 61
static string export( string $trait)

Parameters

string $trait

Return Value

string