class Factory

Creates a representation based on reflection.

Traits

Strict class for better experience.

Methods

fromClassReflection(ReflectionClass $from, bool $withBodies = false)

No description

fromFunctionReflection(ReflectionFunction $from, bool $withBody = false)

No description

fromCallable(callable $from)

No description

fromConstantReflection(ReflectionClassConstant $from)

No description

Details

at line 25
ClassType fromClassReflection(ReflectionClass $from, bool $withBodies = false)

Parameters

ReflectionClass $from
bool $withBodies

Return Value

ClassType

at line 82
Method fromMethodReflection(ReflectionMethod $from)

Parameters

ReflectionMethod $from

Return Value

Method

at line 107
GlobalFunction|Closure fromFunctionReflection(ReflectionFunction $from, bool $withBody = false)

Parameters

ReflectionFunction $from
bool $withBody

Return Value

GlobalFunction|Closure

at line 126
Method|GlobalFunction|Closure fromCallable(callable $from)

Parameters

callable $from

Return Value

Method|GlobalFunction|Closure

at line 135
Parameter fromParameterReflection(ReflectionParameter $from)

Parameters

ReflectionParameter $from

Return Value

Parameter

at line 151
Constant fromConstantReflection(ReflectionClassConstant $from)

Parameters

ReflectionClassConstant $from

Return Value

Constant

at line 164
Property fromPropertyReflection(ReflectionProperty $from)

Parameters

ReflectionProperty $from

Return Value

Property