| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2.0116 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | 26 | public function __construct(string $type, string $tableName, string|IQueryPart $on, ?string $alias = null) |
|
| 25 | { |
||
| 26 | 26 | if (!in_array($type, IJoin::VALID_TYPES)) { |
|
| 27 | throw new \InvalidArgumentException(sprintf('Invalid join type: %s', $type)); |
||
| 28 | } |
||
| 29 | |||
| 30 | 26 | $this->type = $type; |
|
| 31 | 26 | $this->tableName = $tableName; |
|
| 32 | 26 | $this->on = $on; |
|
| 33 | 26 | $this->alias = $alias; |
|
| 34 | 26 | } |
|
| 60 |