1<?php
2
3/*
4 * This file is part of the TYPO3 CMS project.
5 *
6 * It is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU General Public License, either version 2
8 * of the License, or any later version.
9 *
10 * For the full copyright and license information, please read the
11 * LICENSE.txt file that was distributed with this source code.
12 *
13 * The TYPO3 project - inspiring people to share!
14 */
15
16namespace TYPO3\CMS\Extbase\Persistence\Generic\Qom;
17
18/**
19 * Performs a logical disjunction of two other constraints.
20 *
21 * To satisfy the Or constraint, the node-tuple must either:
22 * satisfy constraint1 but not constraint2, or
23 * satisfy constraint2 but not constraint1, or
24 * satisfy both constraint1 and constraint2.
25 */
26interface OrInterface extends ConstraintInterface
27{
28    /**
29     * Gets the first constraint.
30     *
31     * @return ConstraintInterface the constraint
32     */
33    public function getConstraint1();
34
35    /**
36     * Gets the second constraint.
37     *
38     * @return ConstraintInterface the constraint
39     */
40    public function getConstraint2();
41}
42