Documentation

CastToBool
in package
implements TypeCasting

FinalYes
Tags
implements

Table of Contents

Interfaces

TypeCasting

Properties

$default  : bool|null
$info  : TypeCastingInfo
$isNullable  : bool
$type  : Type

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()  : Type, 1: 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([bool|null $default = null ][, bool $emptyStringAsNull = false ]) : void
Parameters
$default : bool|null = null
$emptyStringAsNull : bool = false

init()

private init(ReflectionProperty|ReflectionParameter $reflectionProperty) : Type, 1: bool}
Parameters
$reflectionProperty : ReflectionProperty|ReflectionParameter
Return values
Type, 1: bool}

        
On this page

Search results