| Total Complexity | 8 |
| Total Lines | 72 |
| Duplicated Lines | 0 % |
| Coverage | 80.95% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | abstract class Nip_Form_Renderer_Button_Abstract |
||
| 10 | { |
||
| 11 | use \Nip\Form\Renderer\Traits\HasAttribsTrait; |
||
| 12 | |||
| 13 | protected $_renderer; |
||
| 14 | protected $_button; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param AbstractRenderer $renderer |
||
| 18 | * @return $this |
||
| 19 | */ |
||
| 20 | 1 | public function setRenderer(AbstractRenderer $renderer) |
|
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return AbstractRenderer |
||
| 29 | */ |
||
| 30 | public function getRenderer() |
||
| 31 | { |
||
| 32 | return $this->_renderer; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param AbstractButton $item |
||
| 37 | * @return $this |
||
| 38 | */ |
||
| 39 | 1 | public function setItem(AbstractButton $item) |
|
| 40 | { |
||
| 41 | 1 | $this->_item = $item; |
|
|
|
|||
| 42 | |||
| 43 | 1 | return $this; |
|
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return AbstractButton |
||
| 48 | */ |
||
| 49 | 1 | public function getItem() |
|
| 50 | { |
||
| 51 | 1 | return $this->_item; |
|
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return AbstractButton |
||
| 56 | */ |
||
| 57 | 1 | public function getElement() |
|
| 58 | { |
||
| 59 | 1 | return $this->getItem(); |
|
| 60 | } |
||
| 61 | |||
| 62 | |||
| 63 | 1 | public function render() |
|
| 69 | } |
||
| 70 | |||
| 71 | 1 | public function renderItem() |
|
| 76 | } |
||
| 77 | |||
| 78 | public function generateItem() |
||
| 81 | } |
||
| 82 | |||
| 83 | |||
| 85 |