final class Factory

Creates a representations based on reflection or source code.

Methods

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

No description

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

No description

Closure
fromCallable(callable $from)

No description

fromConstantReflection(ReflectionClassConstant $from)

No description

fromCaseReflection(ReflectionClassConstant $from)

No description

fromType(ReflectionType $from)

No description

fromObject(object $obj)

No description

fromClassCode(string $code)

No description

fromCode(string $code)

No description

Details

at line 31
ClassLike fromClassReflection(ReflectionClass $from, bool $withBodies = false)

No description

Parameters

ReflectionClass $from
bool $withBodies

Return Value

ClassLike

at line 178
Method fromMethodReflection(ReflectionMethod $from)

No description

Parameters

ReflectionMethod $from

Return Value

Method

at line 196
Closure fromFunctionReflection(ReflectionFunction $from, bool $withBody = false)

No description

Parameters

ReflectionFunction $from
bool $withBody

Return Value

Closure

at line 221
Closure fromCallable(callable $from)

No description

Parameters

callable $from

Return Value

Closure

at line 230
Parameter fromParameterReflection(ReflectionParameter $from)

No description

Parameters

ReflectionParameter $from

Return Value

Parameter

at line 265
Constant fromConstantReflection(ReflectionClassConstant $from)

No description

Parameters

ReflectionClassConstant $from

Return Value

Constant

at line 277
EnumCase fromCaseReflection(ReflectionClassConstant $from)

No description

Parameters

ReflectionClassConstant $from

Return Value

EnumCase

at line 287
Property fromPropertyReflection(ReflectionProperty $from)

No description

Parameters

ReflectionProperty $from

Return Value

Property

at line 310
Type fromType(ReflectionType $from)

No description

Parameters

ReflectionType $from

Return Value

Type

at line 363
Literal fromObject(object $obj)

No description

Parameters

object $obj

Return Value

Literal

at line 369
ClassLike fromClassCode(string $code)

No description

Parameters

string $code

Return Value

ClassLike

at line 376
PhpFile fromCode(string $code)

No description

Parameters

string $code

Return Value

PhpFile