[TASK] Clean up TSFE constructor initialization
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Persistence / Generic / Qom / Join.php
1 <?php
2 namespace TYPO3\CMS\Extbase\Persistence\Generic\Qom;
3
4 /*
5 * This file is part of the TYPO3 CMS project.
6 *
7 * It is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License, either version 2
9 * of the License, or any later version.
10 *
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
13 *
14 * The TYPO3 project - inspiring people to share!
15 */
16
17 /**
18 * Performs a join between two node-tuple sources.
19 * @internal only to be used within Extbase, not part of TYPO3 Core API.
20 */
21 class Join implements JoinInterface
22 {
23 /**
24 * @var SourceInterface
25 */
26 protected $left;
27
28 /**
29 * @var SourceInterface
30 */
31 protected $right;
32
33 /**
34 * @var int
35 */
36 protected $joinType;
37
38 /**
39 * @var JoinConditionInterface
40 */
41 protected $joinCondition;
42
43 /**
44 * Constructs the Join instance
45 *
46 * @param SourceInterface $left the left node-tuple source; non-null
47 * @param SourceInterface $right the right node-tuple source; non-null
48 * @param string $joinType One of Query::JCR_JOIN_TYPE_*
49 * @param JoinConditionInterface $joinCondition
50 */
51 public function __construct(SourceInterface $left, SourceInterface $right, $joinType, JoinConditionInterface $joinCondition)
52 {
53 $this->left = $left;
54 $this->right = $right;
55 $this->joinType = $joinType;
56 $this->joinCondition = $joinCondition;
57 }
58
59 /**
60 * Gets the left node-tuple source.
61 *
62 * @return SourceInterface the left source; non-null
63 */
64 public function getLeft()
65 {
66 return $this->left;
67 }
68
69 /**
70 * Gets the right node-tuple source.
71 *
72 * @return SourceInterface the right source; non-null
73 */
74 public function getRight()
75 {
76 return $this->right;
77 }
78
79 /**
80 * Gets the join type.
81 *
82 * @return string one of QueryObjectModelConstants.JCR_JOIN_TYPE_*
83 */
84 public function getJoinType()
85 {
86 return $this->joinType;
87 }
88
89 /**
90 * Gets the join condition.
91 *
92 * @return JoinConditionInterface the join condition; non-null
93 */
94 public function getJoinCondition()
95 {
96 return $this->joinCondition;
97 }
98 }