| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 53 | 1 | protected function getNewButtonRenderer(AbstractButton $button) |
|
| 54 | { |
||
| 55 | 1 | $type = $button->getType(); |
|
| 56 | 1 | $name = 'Nip_Form_Renderer_Button_' . ucfirst($type); |
|
| 57 | /** @var AbstractButtonRenderer $renderer */ |
||
| 58 | 1 | $renderer = new $name(); |
|
| 59 | 1 | $renderer->setRenderer($this); |
|
| 60 | 1 | $renderer->setItem($button); |
|
| 61 | |||
| 62 | 1 | return $renderer; |
|
| 63 | } |
||
| 65 |