class ReflectionHelper (View source)

Reflection

Constants

IS_IMPLICIT_ABSTRACT

IS_EXPLICIT_ABSTRACT

IS_FINAL

Methods

static ReflectionClass
get(string|object $class)

Get a new ReflectionClass.

static string
getPath(string|object $class)

Get path from reflection.

static string
getNamespaceBackwards(string|object $class, int $backwards = 3)

getPackageNamespace

static mixed
__callStatic(string $name, array $args)

Call static magic method.

Details

at line line 76
static ReflectionClass get(string|object $class)

Get a new ReflectionClass.

Parameters

string|object $class The class name.

Return Value

ReflectionClass Reflection instance.

at line line 102
static string getPath(string|object $class)

Get path from reflection.

Parameters

string|object $class The class or object to get reflection.

Return Value

string The class file path.

at line line 117
static string getNamespaceBackwards(string|object $class, int $backwards = 3)

getPackageNamespace

Parameters

string|object $class
int $backwards

Return Value

string

at line line 142
static mixed __callStatic(string $name, array $args)

Call static magic method.

Parameters

string $name The method name.
array $args The arguments of this methods.

Return Value

mixed Return value from reflection class.