PHP Class PhpBench\Expression\Constraint\Composite

Inheritance: extends Constraint
显示文件 Open project: dantleech/phpbench Class Usage Examples

Public Methods

Method Description
__construct ( string $operator, Constraint $constraint1, Constraint $constraint2 )
getConstraint1 ( ) : Constraint Return 1st constraint.
getConstraint2 ( ) : Constraint Return 2nd constraint.
getOperator ( ) : string Return the operator.

Method Details

__construct() public method

public __construct ( string $operator, Constraint $constraint1, Constraint $constraint2 )
$operator string
$constraint1 Constraint
$constraint2 Constraint

getConstraint1() public method

Return 1st constraint.
public getConstraint1 ( ) : Constraint
return Constraint

getConstraint2() public method

Return 2nd constraint.
public getConstraint2 ( ) : Constraint
return Constraint

getOperator() public method

Return the operator.
public getOperator ( ) : string
return string