PHP Class PhpBench\Expression\Constraint\Comparison

Inheritance: extends Constraint
Mostrar archivo Open project: dantleech/phpbench Class Usage Examples

Public Methods

Method Description
__construct ( string $comparator, string $field, mixed $value )
getComparator ( ) : string Return the comparator.
getField ( ) : string Return the field to which this comparison will be applied.
getValue ( ) : mixed Return the value to compare.
replaceValue ( $newValue )

Method Details

__construct() public method

public __construct ( string $comparator, string $field, mixed $value )
$comparator string
$field string
$value mixed

getComparator() public method

Return the comparator.
public getComparator ( ) : string
return string

getField() public method

Return the field to which this comparison will be applied.
public getField ( ) : string
return string

getValue() public method

Return the value to compare.
public getValue ( ) : mixed
return mixed

replaceValue() public method

public replaceValue ( $newValue )