| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.0932 |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | 1 | public function __set(string $name, $value): void |
|
| 43 | { |
||
| 44 | 1 | if ($this->exists($name)) { |
|
| 45 | 1 | $this->row[$name] = $value; |
|
| 46 | |||
| 47 | 1 | $this->changes[$name] = $value; |
|
| 48 | |||
| 49 | 1 | return; |
|
| 50 | } |
||
| 51 | |||
| 52 | throw new InvalidArgumentException( |
||
| 53 | \sprintf("Column with name `%s` does not exist.", $name) |
||
| 54 | ); |
||
| 67 |