PHP Class Dumplie\Metadata\Schema\Field\FloatField

Inheritance: implements Dumplie\Metadata\Schema\FieldDefinition
ファイルを表示 Open project: dumplie/dumplie

Public Methods

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

Method Details

__construct() public method

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

defaultValue() public method

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

deserialize() public method

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

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