class PhpReflection

internal  
 

PHP reflection helpers.

Methods

static string|null
parseAnnotation(Reflector $ref, $name)

Returns an annotation value.

static ReflectionClass
getDeclaringClass(ReflectionProperty $prop)

Returns declaring class or trait.

static string|null
getParameterType(ReflectionParameter $param)

No description

static string|null
static bool
isBuiltinType($type)

No description

static string
expandClassName($name, ReflectionClass $rc)

Expands class name into full name.

static array
parseUseStatemenets($code, $forClass = NULL)

Parses PHP code.

Details

at line 27
static string|null parseAnnotation(Reflector $ref, $name)

Returns an annotation value.

Parameters

Reflector $ref
$name

Return Value

string|null

at line 47
static ReflectionClass getDeclaringClass(ReflectionProperty $prop)

Returns declaring class or trait.

Parameters

ReflectionProperty $prop

Return Value

ReflectionClass

at line 63
static string|null getParameterType(ReflectionParameter $param)

No description

Parameters

ReflectionParameter $param

Return Value

string|null

at line 87
static string|null getReturnType(ReflectionFunctionAbstract $func)

No description

Parameters

ReflectionFunctionAbstract $func

Return Value

string|null

at line 105
static bool isBuiltinType($type)

No description

Parameters

$type

Return Value

bool

at line 117
static string expandClassName($name, ReflectionClass $rc)

Expands class name into full name.

Parameters

$name
ReflectionClass $rc

Return Value

string

full name

Exceptions

InvalidArgumentException

at line 157
static array parseUseStatemenets($code, $forClass = NULL)

Parses PHP code.

Parameters

$code
$forClass

Return Value

array