| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class Join |
||
| 11 | { |
||
| 12 | /** @var string */ |
||
| 13 | public $type; |
||
| 14 | |||
| 15 | /** @var string */ |
||
| 16 | public $table; |
||
| 17 | |||
| 18 | /** @var string */ |
||
| 19 | public $alias; |
||
| 20 | |||
| 21 | /** @var string|null */ |
||
| 22 | public $condition; |
||
| 23 | |||
| 24 | private function __construct(string $type, string $table, string $alias, ?string $condition) |
||
| 25 | { |
||
| 26 | $this->type = $type; |
||
| 27 | $this->table = $table; |
||
| 28 | $this->alias = $alias; |
||
| 29 | $this->condition = $condition; |
||
| 30 | } |
||
| 31 | |||
| 32 | public static function inner(string $table, string $alias, ?string $condition) : Join |
||
| 33 | { |
||
| 34 | return new self('INNER', $table, $alias, $condition); |
||
| 35 | } |
||
| 36 | |||
| 37 | public static function left(string $table, string $alias, ?string $condition) : Join |
||
| 40 | } |
||
| 41 | |||
| 42 | public static function right(string $table, string $alias, ?string $condition) : Join |
||
| 45 | } |
||
| 46 | } |
||
| 47 |