Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function __construct(string $join, string $alias, string $type = self::INNER_JOIN) |
||
33 | { |
||
34 | if (!in_array($type, self::$validTypes)) { |
||
35 | throw new \InvalidArgumentException(sprintf( |
||
36 | 'Unknown join type "%s". Known joins: "%s"', |
||
37 | $type, |
||
38 | implode('", "', self::$validTypes) |
||
39 | )); |
||
40 | } |
||
41 | |||
42 | $this->type = $type; |
||
43 | $this->alias = $alias; |
||
44 | $this->join = $join; |
||
45 | } |
||
46 | |||
62 |