Documentation

ReflectionMapper
in package

FinalYes
Tags
no-named-arguments

Parameter names are not covered by the backward compatibility promise for this library

Table of Contents

Methods

fromParameterTypes()  : array<int, Parameter>
fromPropertyType()  : Type
fromReturnType()  : Type
hasReturnType()  : bool
mapIntersectionType()  : Type
mapNamedType()  : Type
mapUnionType()  : Type
returnType()  : ReflectionType|null

Methods

fromParameterTypes()

public fromParameterTypes(ReflectionFunction|ReflectionMethod $reflector) : array<int, Parameter>
Parameters
$reflector : ReflectionFunction|ReflectionMethod
Return values
array<int, Parameter>

fromPropertyType()

public fromPropertyType(ReflectionProperty $reflector) : Type
Parameters
$reflector : ReflectionProperty
Return values
Type

fromReturnType()

public fromReturnType(ReflectionFunction|ReflectionMethod $reflector) : Type
Parameters
$reflector : ReflectionFunction|ReflectionMethod
Return values
Type

hasReturnType()

private hasReturnType(ReflectionFunction|ReflectionMethod $reflector) : bool
Parameters
$reflector : ReflectionFunction|ReflectionMethod
Return values
bool

mapIntersectionType()

private mapIntersectionType(ReflectionIntersectionType $type, ReflectionFunction|ReflectionMethod|ReflectionProperty $reflector) : Type
Parameters
$type : ReflectionIntersectionType
$reflector : ReflectionFunction|ReflectionMethod|ReflectionProperty
Return values
Type

mapNamedType()

private mapNamedType(ReflectionNamedType $type, ReflectionFunction|ReflectionMethod|ReflectionProperty $reflector) : Type
Parameters
$type : ReflectionNamedType
$reflector : ReflectionFunction|ReflectionMethod|ReflectionProperty
Return values
Type

mapUnionType()

private mapUnionType(ReflectionUnionType $type, ReflectionFunction|ReflectionMethod|ReflectionProperty $reflector) : Type
Parameters
$type : ReflectionUnionType
$reflector : ReflectionFunction|ReflectionMethod|ReflectionProperty
Return values
Type

returnType()

private returnType(ReflectionFunction|ReflectionMethod $reflector) : ReflectionType|null
Parameters
$reflector : ReflectionFunction|ReflectionMethod
Return values
ReflectionType|null
On this page

Search results