‪TYPO3CMS  ‪main
Comparison.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
21 
68 {
70 
74  protected int ‪$operator;
75 
82  protected ‪$operand2;
83 
91  {
92  $this->operand1 = ‪$operand1;
93  $this->operator = ‪$operator;
94  $this->operand2 = ‪$operand2;
95  }
96 
100  public function ‪getOperand1(): ‪PropertyValueInterface
101  {
102  return ‪$this->operand1;
103  }
104 
110  public function ‪getOperator(): int
111  {
113 
114  if ($this->‪getOperand2() === null) {
115  if ($operator === ‪QueryInterface::OPERATOR_EQUAL_TO) {
119  }
120  }
121 
122  return ‪$operator;
123  }
124 
128  public function ‪getOperand2()
129  {
130  return ‪$this->operand2;
131  }
132 
138  public function ‪collectBoundVariableNames(&$boundVariables): array
139  {
140  return [];
141  }
142 }
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\Comparison\collectBoundVariableNames
‪collectBoundVariableNames(&$boundVariables)
Definition: Comparison.php:137
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\Comparison\__construct
‪__construct(PropertyValueInterface $operand1, int $operator, $operand2)
Definition: Comparison.php:89
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_NOT_EQUAL_TO_NULL
‪const OPERATOR_NOT_EQUAL_TO_NULL
Definition: QueryInterface.php:49
‪TYPO3\CMS\Extbase\Persistence\QueryInterface
Definition: QueryInterface.php:30
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\Comparison\getOperator
‪QueryInterface::OPERATOR_ * getOperator()
Definition: Comparison.php:109
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\Comparison\getOperand2
‪mixed getOperand2()
Definition: Comparison.php:127
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\PropertyValueInterface
Definition: PropertyValueInterface.php:32
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\Comparison\getOperand1
‪getOperand1()
Definition: Comparison.php:99
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\ComparisonInterface
Definition: ComparisonInterface.php:66
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom
Definition: AndInterface.php:16
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_EQUAL_TO
‪const OPERATOR_EQUAL_TO
Definition: QueryInterface.php:34
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\Comparison\$operator
‪int $operator
Definition: Comparison.php:74
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_NOT_EQUAL_TO
‪const OPERATOR_NOT_EQUAL_TO
Definition: QueryInterface.php:44
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\Comparison\$operand2
‪mixed $operand2
Definition: Comparison.php:81
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\Comparison
Definition: Comparison.php:68
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_EQUAL_TO_NULL
‪const OPERATOR_EQUAL_TO_NULL
Definition: QueryInterface.php:39
‪TYPO3\CMS\Extbase\Persistence\Generic\Qom\Comparison\$operand1
‪PropertyValueInterface $operand1
Definition: Comparison.php:69