class ClassInspect

Class ClassInspect.

Methods

static  string
getName( string|object $for, bool $qualified = true)

No description

static  string
getNameQualified( string|object $for)

No description

static  string
getNameShort( string|object $for)

No description

static  string
getNamespace( string|object $for)

No description

static  string[]
getNamespaceArray( string|object $for)

No description

static  bool
isClass( mixed $class)

No description

static  bool
isInstance( mixed $instance)

No description

static  bool
isInterface( mixed $interface)

No description

static  bool
isTrait( string $trait)

No description

static  bool
assertClass( mixed $class)

No description

static  bool
assertInstance( mixed $instance)

No description

static  bool
assertInterface( mixed $interface)

No description

static  bool
assertTrait( mixed $trait)

No description

getReflection( string|object $for)

No description

static  bool
isThrowableEquitable( string|object $class)

No description

Details

at line line 26
final static string getName( string|object $for, bool $qualified = true)

Parameters

string|object $for
bool $qualified

Return Value

string

at line line 36
final static string getNameQualified( string|object $for)

Parameters

string|object $for

Return Value

string

at line line 46
final static string getNameShort( string|object $for)

Parameters

string|object $for

Return Value

string

at line line 56
final static string getNamespace( string|object $for)

Parameters

string|object $for

Return Value

string

at line line 66
final static string[] getNamespaceArray( string|object $for)

Parameters

string|object $for

Return Value

string[]

at line line 76
final static bool isClass( mixed $class)

Parameters

mixed $class

Return Value

bool

at line line 90
final static bool isInstance( mixed $instance)

Parameters

mixed $instance

Return Value

bool

at line line 104
final static bool isInterface( mixed $interface)

Parameters

mixed $interface

Return Value

bool

at line line 118
final static bool isTrait( string $trait)

Parameters

string $trait

Return Value

bool

at line line 134
final static bool assertClass( mixed $class)

Parameters

mixed $class

Return Value

bool

Exceptions

InvalidArgumentException

at line line 150
final static bool assertInstance( mixed $instance)

Parameters

mixed $instance

Return Value

bool

Exceptions

InvalidArgumentException

at line line 166
final static bool assertInterface( mixed $interface)

Parameters

mixed $interface

Return Value

bool

Exceptions

InvalidArgumentException

at line line 182
final static bool assertTrait( mixed $trait)

Parameters

mixed $trait

Return Value

bool

Exceptions

InvalidArgumentException

at line line 196
final static null|ReflectionClass|ReflectionObject getReflection( string|object $for)

Parameters

string|object $for

Return Value

null|ReflectionClass|ReflectionObject

at line line 214
final static bool isThrowableEquitable( string|object $class)

Parameters

string|object $class

Return Value

bool