ReflectionMapper
in package
FinalYes
Table of Contents
Methods
- fromParameterTypes() : array<string|int, mixed>
- fromReturnType() : Type
- hasReturnType() : bool
- mapIntersectionType() : Type
- mapNamedType() : Type
- mapUnionType() : Type
- returnType() : ReflectionType|null
Methods
fromParameterTypes()
public
fromParameterTypes(ReflectionFunction|ReflectionMethod $functionOrMethod) : array<string|int, mixed>
Parameters
- $functionOrMethod : ReflectionFunction|ReflectionMethod
Tags
Return values
array<string|int, mixed>fromReturnType()
public
fromReturnType(ReflectionFunction|ReflectionMethod $functionOrMethod) : Type
Parameters
- $functionOrMethod : ReflectionFunction|ReflectionMethod
Return values
TypehasReturnType()
private
hasReturnType(ReflectionFunction|ReflectionMethod $functionOrMethod) : bool
Parameters
- $functionOrMethod : ReflectionFunction|ReflectionMethod
Return values
boolmapIntersectionType()
private
mapIntersectionType(ReflectionIntersectionType $type, ReflectionFunction|ReflectionMethod $functionOrMethod) : Type
Parameters
- $type : ReflectionIntersectionType
- $functionOrMethod : ReflectionFunction|ReflectionMethod
Return values
TypemapNamedType()
private
mapNamedType(ReflectionNamedType $type, ReflectionFunction|ReflectionMethod $functionOrMethod) : Type
Parameters
- $type : ReflectionNamedType
- $functionOrMethod : ReflectionFunction|ReflectionMethod
Return values
TypemapUnionType()
private
mapUnionType(ReflectionUnionType $type, ReflectionFunction|ReflectionMethod $functionOrMethod) : Type
Parameters
- $type : ReflectionUnionType
- $functionOrMethod : ReflectionFunction|ReflectionMethod
Return values
TypereturnType()
private
returnType(ReflectionFunction|ReflectionMethod $functionOrMethod) : ReflectionType|null
Parameters
- $functionOrMethod : ReflectionFunction|ReflectionMethod