| Conditions | 3 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 3 |
| Changes | 3 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 69 | 1 | public function toArray() |
|
| 70 | { |
||
| 71 | 1 | $result = array(); |
|
| 72 | |||
| 73 | 1 | $value = $this->getValue(); |
|
| 74 | 1 | if (null !== $value) { |
|
| 75 | 1 | $result['value'] = (string) $value; |
|
| 76 | 1 | } |
|
| 77 | |||
| 78 | 1 | $label = $this->getLabel(); |
|
| 79 | 1 | if (null !== $label) { |
|
| 80 | 1 | $result['label'] = $label; |
|
| 81 | 1 | } |
|
| 82 | |||
| 83 | 1 | return $result; |
|
| 84 | } |
||
| 85 | } |
||
| 86 |