ReflectionMapper
in package
FinalYes
Tags
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
TypefromReturnType()
public
fromReturnType(ReflectionFunction|ReflectionMethod $reflector) : Type
Parameters
- $reflector : ReflectionFunction|ReflectionMethod
Return values
TypehasReturnType()
private
hasReturnType(ReflectionFunction|ReflectionMethod $reflector) : bool
Parameters
- $reflector : ReflectionFunction|ReflectionMethod
Return values
boolmapIntersectionType()
private
mapIntersectionType(ReflectionIntersectionType $type, ReflectionFunction|ReflectionMethod|ReflectionProperty $reflector) : Type
Parameters
- $type : ReflectionIntersectionType
- $reflector : ReflectionFunction|ReflectionMethod|ReflectionProperty
Return values
TypemapNamedType()
private
mapNamedType(ReflectionNamedType $type, ReflectionFunction|ReflectionMethod|ReflectionProperty $reflector) : Type
Parameters
- $type : ReflectionNamedType
- $reflector : ReflectionFunction|ReflectionMethod|ReflectionProperty
Return values
TypemapUnionType()
private
mapUnionType(ReflectionUnionType $type, ReflectionFunction|ReflectionMethod|ReflectionProperty $reflector) : Type
Parameters
- $type : ReflectionUnionType
- $reflector : ReflectionFunction|ReflectionMethod|ReflectionProperty
Return values
TypereturnType()
private
returnType(ReflectionFunction|ReflectionMethod $reflector) : ReflectionType|null
Parameters
- $reflector : ReflectionFunction|ReflectionMethod