Documentation

CastToFloat
in package
implements TypeCasting

FinalYes
Tags
implements

Table of Contents

Interfaces

TypeCasting

Properties

$default  : float|null
$info  : TypeCastingInfo
$isNullable  : bool

Methods

__construct()  : mixed
info()  : TypeCastingInfo
setOptions()  : void
Accepts additional parameters to configure the class Parameters should be scalar value, null or array containing only scalar value and null.
toVariable()  : TValue
init()  : bool

Properties

Methods

__construct()

public __construct(ReflectionProperty|ReflectionParameter $reflectionProperty) : mixed
Parameters
$reflectionProperty : ReflectionProperty|ReflectionParameter

setOptions()

Accepts additional parameters to configure the class Parameters should be scalar value, null or array containing only scalar value and null.

public setOptions([int|float|null $default = null ][, bool $emptyStringAsNull = false ]) : void
Parameters
$default : int|float|null = null
$emptyStringAsNull : bool = false

init()

private init(ReflectionProperty|ReflectionParameter $reflectionProperty) : bool
Parameters
$reflectionProperty : ReflectionProperty|ReflectionParameter
Return values
bool

        
On this page

Search results