| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 15 | 3 | public function addItem(Title $title, $label, $description) |
|
| 16 | { |
||
| 17 | 3 | $count = count($this->items); |
|
| 18 | 3 | $this->items[$count]['title'] = $title->toArray(); |
|
| 19 | |||
| 20 | 3 | if ($label instanceof Label) { |
|
| 21 | 2 | $this->items[$count]['label'] = $label->toArray(); |
|
| 22 | 2 | } |
|
| 23 | |||
| 24 | 3 | $this->items[$count]['description'] = $description; |
|
| 25 | 3 | } |
|
| 26 | |||
| 35 |