TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
LogicalAnd Class Reference
Inheritance diagram for LogicalAnd:
AndInterface ConstraintInterface

Public Member Functions

 __construct (ConstraintInterface $constraint1, ConstraintInterface $constraint2)
 
 collectBoundVariableNames (&$boundVariables)
 
 getConstraint1 ()
 
 getConstraint2 ()
 

Protected Attributes

 $constraint1
 
 $constraint2
 

Detailed Description

Performs a logical conjunction of two other constraints.

To satisfy the And constraint, a node-tuple must satisfy both constraint1 and constraint2.

Definition at line 23 of file LogicalAnd.php.

Constructor & Destructor Documentation

__construct ( ConstraintInterface  $constraint1,
ConstraintInterface  $constraint2 
)
Parameters
ConstraintInterface$constraint1
ConstraintInterface$constraint2

Definition at line 39 of file LogicalAnd.php.

References LogicalAnd\$constraint1, and LogicalAnd\$constraint2.

Member Function Documentation

collectBoundVariableNames ( $boundVariables)

Fills an array with the names of all bound variables in the constraints

Parameters
array&$boundVariables
Returns
void

Implements ConstraintInterface.

Definition at line 51 of file LogicalAnd.php.

getConstraint1 ( )

Gets the first constraint.

Returns
ConstraintInterface the constraint; non-null

Implements AndInterface.

Definition at line 62 of file LogicalAnd.php.

References LogicalAnd\$constraint1.

getConstraint2 ( )

Gets the second constraint.

Returns
ConstraintInterface the constraint; non-null

Implements AndInterface.

Definition at line 72 of file LogicalAnd.php.

References LogicalAnd\$constraint2.

Member Data Documentation

$constraint1
protected

Definition at line 28 of file LogicalAnd.php.

Referenced by LogicalAnd\__construct(), and LogicalAnd\getConstraint1().

$constraint2
protected

Definition at line 33 of file LogicalAnd.php.

Referenced by LogicalAnd\__construct(), and LogicalAnd\getConstraint2().