| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 13 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 11 | public function __construct(string $table, array $alterations, array $conditions) | ||
| 12 |     { | ||
| 13 |         if (empty($alterations) || empty($conditions)) { | ||
| 14 |             throw new \InvalidArgumentException('EMPTY_ALTERATIONS_OR_CONDITIONS'); | ||
| 15 | } | ||
| 16 | |||
| 17 | $this->table = $table; | ||
| 18 | |||
| 19 | $this->add(new Set($alterations)); | ||
| 20 | |||
| 21 | $clause = new Where($table); | ||
| 22 | $clause->andFields($conditions, $table, '='); | ||
| 23 | $this->add($clause); | ||
| 24 | } | ||
| 31 |