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
$source read-only
public
int|string
$source
$targetClassName read-only
public
string|null
$targetClassName
$targetMethodName read-only
public
string|null
$targetMethodName
$targetName read-only
public
string
$targetName
$targetType read-only
public
TypeCastingTargetType
$targetType
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
selffromMethod()
public
static fromMethod(ReflectionMethod $accessor) : self
Parameters
- $accessor : ReflectionMethod
Return values
selffromMethodFirstArgument()
public
static fromMethodFirstArgument(ReflectionParameter $accessor) : self
Parameters
- $accessor : ReflectionParameter
Return values
selffromProperty()
public
static fromProperty(ReflectionProperty $accessor) : self
Parameters
- $accessor : ReflectionProperty
Return values
selfgetColumnName()
private
static getColumnName(ReflectionFunctionAbstract $method) : string
Parameters
- $method : ReflectionFunctionAbstract
Return values
stringresolveSource()
private
static resolveSource(ReflectionFunctionAbstract $method) : int|string
Parameters
- $method : ReflectionFunctionAbstract