PHP Class Bravo3\Orm\Mappers\Metadata\Condition

Mostrar archivo Open project: bravo3/orm

Protected Properties

Property Type Description
$column string
$comparison string
$method string
$value mixed

Public Methods

Method Description
__construct ( string $column, string $method, string $value, string $comparison = '=' )
getColumn ( ) : string Get Column
getComparison ( ) : string Get Comparison
getMethod ( )
getValue ( ) : mixed Get Value
setColumn ( string $column ) Set Column
setComparison ( string $comparison ) Set Comparison
setMethod ( $method )
setValue ( mixed $value ) Set Value
test ( mixed $value ) : boolean Test a value against this condition

Method Details

__construct() public method

public __construct ( string $column, string $method, string $value, string $comparison = '=' )
$column string
$method string
$value string
$comparison string

getColumn() public method

Get Column
public getColumn ( ) : string
return string

getComparison() public method

Get Comparison
public getComparison ( ) : string
return string

getMethod() public method

public getMethod ( )

getValue() public method

Get Value
public getValue ( ) : mixed
return mixed

setColumn() public method

Set Column
public setColumn ( string $column )
$column string

setComparison() public method

Set Comparison
public setComparison ( string $comparison )
$comparison string

setMethod() public method

public setMethod ( $method )

setValue() public method

Set Value
public setValue ( mixed $value )
$value mixed

test() public method

Test a value against this condition
public test ( mixed $value ) : boolean
$value mixed
return boolean

Property Details

$column protected_oe property

protected string $column
return string

$comparison protected_oe property

protected string $comparison
return string

$method protected_oe property

protected string $method
return string

$value protected_oe property

protected mixed $value
return mixed