Documentation

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(ReflectionFunctionAbstract $functionOrMethod) : array<string|int, mixed>
Parameters
$functionOrMethod : ReflectionFunctionAbstract
Tags
psalm-return

list<Parameter>

Return values
array<string|int, mixed>

fromReturnType()

public fromReturnType(ReflectionFunctionAbstract $functionOrMethod) : Type
Parameters
$functionOrMethod : ReflectionFunctionAbstract
Return values
Type

hasReturnType()

private hasReturnType(ReflectionFunctionAbstract $functionOrMethod) : bool
Parameters
$functionOrMethod : ReflectionFunctionAbstract
Return values
bool

mapIntersectionType()

private mapIntersectionType(ReflectionIntersectionType $type, ReflectionFunctionAbstract $functionOrMethod) : Type
Parameters
$type : ReflectionIntersectionType
$functionOrMethod : ReflectionFunctionAbstract
Return values
Type

mapNamedType()

private mapNamedType(ReflectionNamedType $type, ReflectionFunctionAbstract $functionOrMethod) : Type
Parameters
$type : ReflectionNamedType
$functionOrMethod : ReflectionFunctionAbstract
Return values
Type

mapUnionType()

private mapUnionType(ReflectionUnionType $type, ReflectionFunctionAbstract $functionOrMethod) : Type
Parameters
$type : ReflectionUnionType
$functionOrMethod : ReflectionFunctionAbstract
Return values
Type

returnType()

private returnType(ReflectionFunctionAbstract $functionOrMethod) : ReflectionType|null
Parameters
$functionOrMethod : ReflectionFunctionAbstract
Return values
ReflectionType|null

        
On this page

Search results