PHP Class Dumplie\Metadata\Schema\Field\BoolField

Inheritance: implements Dumplie\Metadata\Schema\FieldDefinition
Show file Open project: dumplie/dumplie

Public Methods

Method Description
__construct ( boolean $default = null, boolean $nullable = true, array $options = [] )
defaultValue ( ) : boolean | null
deserialize ( $serializedValue ) : boolean
isNullable ( ) : boolean
isValid ( $value ) : boolean
name ( ) : string
options ( ) : array
serialize ( $value ) : string
type ( ) : Type

Method Details

__construct() public method

public __construct ( boolean $default = null, boolean $nullable = true, array $options = [] )
$default boolean
$nullable boolean
$options array

defaultValue() public method

public defaultValue ( ) : boolean | null
return boolean | null

deserialize() public method

public deserialize ( $serializedValue ) : boolean
$serializedValue
return boolean

isNullable() public method

public isNullable ( ) : boolean
return boolean

isValid() public method

public isValid ( $value ) : boolean
$value
return boolean

name() public method

public name ( ) : string
return string

options() public method

public options ( ) : array
return array

serialize() public method

public serialize ( $value ) : string
$value
return string

type() public method

public type ( ) : Type
return Dumplie\Metadata\Schema\Type