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

list<Parameter>

Return values
array<string|int, mixed>

fromReturnType()

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

hasReturnType()

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

mapIntersectionType()

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

mapNamedType()

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

mapUnionType()

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

returnType()

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

        
On this page

Search results