| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 50 | public function setField($field, $value, $message = null) |
||
| 51 | { |
||
| 52 | $this->field = $field; |
||
| 53 | $this->value = $value; |
||
| 54 | if ($message === null) { |
||
| 55 | $message = "The file contains an invalid value [{$value}] for the field [{$field}]."; |
||
| 56 | } |
||
| 57 | $this->message = $message; |
||
| 58 | |||
| 59 | return $this; |
||
| 60 | } |
||
| 62 |