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