TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Persistence\Generic\Qom\LogicalAnd Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Persistence\Generic\Qom\LogicalAnd:
TYPO3\CMS\Extbase\Persistence\Generic\Qom\AndInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\ConstraintInterface Tx_Extbase_Persistence_QOM_LogicalAnd

Public Member Functions

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

Protected Attributes

 $constraint1
 
 $constraint2
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! 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 22 of file LogicalAnd.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\LogicalAnd::__construct ( ConstraintInterface  $constraint1,
ConstraintInterface  $constraint2 
)

Member Function Documentation

◆ collectBoundVariableNames()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\LogicalAnd::collectBoundVariableNames ( $boundVariables)

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

Parameters
array&$boundVariables
Returns
void

Implements TYPO3\CMS\Extbase\Persistence\Generic\Qom\ConstraintInterface.

Definition at line 49 of file LogicalAnd.php.

◆ getConstraint1()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\LogicalAnd::getConstraint1 ( )

Gets the first constraint.

Returns
ConstraintInterface the constraint; non-null

Implements TYPO3\CMS\Extbase\Persistence\Generic\Qom\AndInterface.

Definition at line 59 of file LogicalAnd.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Qom\LogicalAnd\$constraint1.

◆ getConstraint2()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\LogicalAnd::getConstraint2 ( )

Gets the second constraint.

Returns
ConstraintInterface the constraint; non-null

Implements TYPO3\CMS\Extbase\Persistence\Generic\Qom\AndInterface.

Definition at line 68 of file LogicalAnd.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Qom\LogicalAnd\$constraint2.

Member Data Documentation

◆ $constraint1

TYPO3\CMS\Extbase\Persistence\Generic\Qom\LogicalAnd::$constraint1
protected

◆ $constraint2

TYPO3\CMS\Extbase\Persistence\Generic\Qom\LogicalAnd::$constraint2
protected