| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 18 | public function addCustomField($value) |
||
| 19 | { |
||
| 20 | if ($this->getCustomFieldPrefix() === '') { |
||
| 21 | throw LogicException::noCustomFieldPrefixDefined(); |
||
| 22 | } |
||
| 23 | |||
| 24 | if (count($this->customFields) == 10) { |
||
| 25 | throw LogicException::only10CustomFieldsAreAllowed(); |
||
| 26 | } |
||
| 27 | |||
| 28 | $this->customFields[$this->getCustomFieldPrefix().'_custom_field'.(count($this->customFields) + 1)] = $value; |
||
| 29 | } |
||
| 36 |