1 | <?php |
||
7 | class Join |
||
8 | { |
||
9 | const INNER_JOIN = 'INNER'; |
||
10 | const LEFT_JOIN = 'LEFT'; |
||
11 | |||
12 | private static $validTypes = [ |
||
13 | self::INNER_JOIN, |
||
14 | self::LEFT_JOIN, |
||
15 | ]; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $join; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $type; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $alias; |
||
31 | |||
32 | public function __construct(string $join, string $alias, string $type = self::INNER_JOIN) |
||
46 | |||
47 | public function getType() |
||
51 | |||
52 | public function getAlias() |
||
56 | |||
57 | public function getJoin() |
||
61 | } |
||
62 |