PHP Class PhpBench\Expression\Constraint\Comparison

Inheritance: extends Constraint
Afficher le fichier Open project: dantleech/phpbench Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

getComparator() public méthode

Return the comparator.
public getComparator ( ) : string
Résultat string

getField() public méthode

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

getValue() public méthode

Return the value to compare.
public getValue ( ) : mixed
Résultat mixed

replaceValue() public méthode

public replaceValue ( $newValue )