| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 58 | 12 | public function createItem($name, array $options = []) |
|
| 59 | { |
||
| 60 | /** @var MenuItemInterface $item */ |
||
| 61 | 12 | $item = $this->create(); |
|
| 62 | 12 | $item->setName($name); |
|
| 63 | |||
| 64 | 12 | $options = $this->extensionChain->buildOptions($options); |
|
| 65 | |||
| 66 | 12 | $this->extensionChain->buildItem($item, $options); |
|
| 67 | |||
| 68 | 12 | return $item; |
|
| 69 | } |
||
| 70 | } |
||
| 71 |