PHP Interface Pheasant\Type

ファイルを表示 Open project: lox/pheasant

Public Methods

Method Description
columnSql ( $column, $platform ) : string Gets the sql for defining the column
equals ( $value1, $value2 ) : boolean Test if two unmarshalled values are equal
marshal ( $value ) : either Convert from a PHP format to a database format
options ( ) : Options Gets the type options
unmarshal ( $value ) : mixed Convert from the database format to a PHP format

Method Details

columnSql() public method

Gets the sql for defining the column
public columnSql ( $column, $platform ) : string
return string

equals() public method

Test if two unmarshalled values are equal
public equals ( $value1, $value2 ) : boolean
return boolean

marshal() public method

Convert from a PHP format to a database format
public marshal ( $value ) : either
return either a scalar or a TypedValue

options() public method

Gets the type options
public options ( ) : Options
return Options

unmarshal() public method

Convert from the database format to a PHP format
public unmarshal ( $value ) : mixed
return mixed