| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 88 | 3 | public function toArray() |
|
| 89 | { |
||
| 90 | 3 | $result = array(); |
|
| 91 | 3 | $result['label'] = $this->getLabel(); |
|
| 92 | 3 | $result['value'] = $this->getValue(); |
|
| 93 | |||
| 94 | 3 | $previousRank = $this->getPreviousRank(); |
|
| 95 | 3 | if (null !== $previousRank) { |
|
| 96 | 1 | $result['previous_rank'] = $previousRank; |
|
| 97 | 1 | } |
|
| 98 | |||
| 99 | 3 | return $result; |
|
| 100 | } |
||
| 101 | } |
||
| 102 |