PHP Class Dumplie\Metadata\Schema\Field\AssociationField

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

Public Methods

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

Method Details

__construct() public method

public __construct ( string $schema, TypeSchema $typeSchema, boolean $nullable = false, array $options = [] )
$schema string
$typeSchema Dumplie\Metadata\Schema\TypeSchema
$nullable boolean
$options array

defaultValue() public method

public defaultValue ( ) : null
return null

deserialize() public method

public deserialize ( string $serializedValue ) : null | Association
$serializedValue string
return null | Dumplie\Metadata\Association

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

schema() public method

public schema ( ) : string
return string

serialize() public method

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

type() public method

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

typeSchema() public method

public typeSchema ( ) : TypeSchema
return Dumplie\Metadata\Schema\TypeSchema