Documentation

TypeCastingInfo
in package

FinalYes

Table of Contents

Properties

$source  : int|string
$targetClassName  : string|null
$targetMethodName  : string|null
$targetName  : string
$targetType  : TypeCastingTargetType

Methods

__construct()  : mixed
fromAccessor()  : self
fromMethod()  : self
fromMethodFirstArgument()  : self
fromProperty()  : self
getColumnName()  : string
resolveSource()  : int|string

Properties

Methods

__construct()

public __construct(int|string $source, TypeCastingTargetType $targetType, string $targetName, string|null $targetMethodName, string|null $targetClassName) : mixed
Parameters
$source : int|string
$targetType : TypeCastingTargetType
$targetName : string
$targetMethodName : string|null
$targetClassName : string|null

fromAccessor()

public static fromAccessor(ReflectionMethod|ReflectionProperty|ReflectionParameter $accessor) : self
Parameters
$accessor : ReflectionMethod|ReflectionProperty|ReflectionParameter
Return values
self

fromMethod()

public static fromMethod(ReflectionMethod $accessor) : self
Parameters
$accessor : ReflectionMethod
Return values
self

fromMethodFirstArgument()

public static fromMethodFirstArgument(ReflectionParameter $accessor) : self
Parameters
$accessor : ReflectionParameter
Return values
self

fromProperty()

public static fromProperty(ReflectionProperty $accessor) : self
Parameters
$accessor : ReflectionProperty
Return values
self

getColumnName()

private static getColumnName(ReflectionFunctionAbstract $method) : string
Parameters
$method : ReflectionFunctionAbstract
Return values
string

resolveSource()

private static resolveSource(ReflectionFunctionAbstract $method) : int|string
Parameters
$method : ReflectionFunctionAbstract
Return values
int|string

        
On this page

Search results