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