| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function __construct(array $alterations) |
||
| 12 | { |
||
| 13 | parent::__construct(); |
||
| 14 | foreach ($alterations as $field_name => $value) { |
||
| 15 | $predicate = (new Predicate([$field_name], '='))->withValue($value, 'set_'.$field_name); |
||
| 16 | |||
| 17 | $this->alterations .= $predicate->__toString().','; |
||
| 18 | $this->bindings = array_merge($this->bindings, $predicate->bindings()); |
||
| 19 | } |
||
| 31 | } |