class Reflection (View source)

The reflection class.

Methods

static array
getModifierNames(int $modifiers)

Gets modifier names

static string|null
export(Reflector $reflector, bool $return = false)

Exports

Details

static array getModifierNames(int $modifiers)

Gets modifier names

Parameters

int $modifiers

Bitfield of the modifiers to get.

Return Value

array

An array of modifier names.

static string|null export(Reflector $reflector, bool $return = false)

Exports

Parameters

Reflector $reflector

The reflection to export.

bool $return

Setting to {\true} will return the export, as opposed to emitting it. Setting to {\false} (the default) will do the opposite.

Return Value

string|null

If the return parameter is set to {\true}, then the export is returned as a string, otherwise {\null} is returned.