final class Factory

Creates a representation based on reflection.

Methods

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

No description

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

No description

fromCallable(callable $from)

No description

fromConstantReflection(ReflectionClassConstant $from)

No description

fromCaseReflection(ReflectionClassConstant $from)

No description

fromObject(object $obj)

No description

fromClassCode(string $code)

No description

fromCode(string $code)

No description

Details

at line 27
ClassType fromClassReflection(ReflectionClass $from, bool $withBodies = false, bool $materializeTraits = true)

No description

Parameters

ReflectionClass $from
bool $withBodies
bool $materializeTraits

Return Value

ClassType

at line 139
Method fromMethodReflection(ReflectionMethod $from)

No description

Parameters

ReflectionMethod $from

Return Value

Method

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

No description

Parameters

ReflectionFunction $from
bool $withBody

Return Value

GlobalFunction|Closure

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

No description

Parameters

callable $from

Return Value

Method|GlobalFunction|Closure

at line 206
Parameter fromParameterReflection(ReflectionParameter $from)

No description

Parameters

ReflectionParameter $from

Return Value

Parameter

at line 240
Constant fromConstantReflection(ReflectionClassConstant $from)

No description

Parameters

ReflectionClassConstant $from

Return Value

Constant

at line 252
EnumCase fromCaseReflection(ReflectionClassConstant $from)

No description

Parameters

ReflectionClassConstant $from

Return Value

EnumCase

at line 262
Property fromPropertyReflection(ReflectionProperty $from)

No description

Parameters

ReflectionProperty $from

Return Value

Property

at line 290
Literal fromObject(object $obj)

No description

Parameters

object $obj

Return Value

Literal

at line 296
ClassType fromClassCode(string $code)

No description

Parameters

string $code

Return Value

ClassType

at line 306
PhpFile fromCode(string $code)

No description

Parameters

string $code

Return Value

PhpFile

Traits

Strict class for better experience.