PHP Class Dumplie\Metadata\Schema\Field\TextField

Inheritance: implements Dumplie\Metadata\Schema\FieldDefinition
Datei anzeigen Open project: dumplie/dumplie

Public Methods

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

Method Details

__construct() public method

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

defaultValue() public method

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

deserialize() public method

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

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