1 | <?php |
||
21 | abstract class AbstractButton implements ButtonInterface { |
||
22 | |||
23 | /** |
||
24 | * Active |
||
25 | * |
||
26 | * @var bool |
||
27 | */ |
||
28 | private $active; |
||
29 | |||
30 | /** |
||
31 | * Block. |
||
32 | * |
||
33 | * @var bool |
||
34 | */ |
||
35 | private $block; |
||
36 | |||
37 | /** |
||
38 | * Content. |
||
39 | * |
||
40 | * @var string |
||
41 | */ |
||
42 | private $content; |
||
43 | |||
44 | /** |
||
45 | * Disabled. |
||
46 | * |
||
47 | * @var bool |
||
48 | */ |
||
49 | private $disabled; |
||
50 | |||
51 | /** |
||
52 | * Size. |
||
53 | * |
||
54 | * @var string |
||
55 | */ |
||
56 | private $size; |
||
57 | |||
58 | /** |
||
59 | * Title. |
||
60 | * |
||
61 | * @var string |
||
62 | */ |
||
63 | private $title; |
||
64 | |||
65 | /** |
||
66 | * Type. |
||
67 | * |
||
68 | * @var string |
||
69 | */ |
||
70 | private $type; |
||
71 | |||
72 | /** |
||
73 | * Constructor. |
||
74 | * |
||
75 | * @param string type. |
||
76 | */ |
||
77 | protected function __construct($type) { |
||
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | public function getActive() { |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | public function getBlock() { |
||
97 | |||
98 | /** |
||
99 | * {@inheritdoc} |
||
100 | */ |
||
101 | public function getContent() { |
||
104 | |||
105 | /** |
||
106 | * {@inheritdoc} |
||
107 | */ |
||
108 | public function getDisabled() { |
||
111 | |||
112 | /** |
||
113 | * {@inheritdoc} |
||
114 | */ |
||
115 | public function getSize() { |
||
118 | |||
119 | /** |
||
120 | * {@inheritdoc} |
||
121 | */ |
||
122 | public function getTitle() { |
||
125 | |||
126 | /** |
||
127 | * {@inheritdoc} |
||
128 | */ |
||
129 | public function getType() { |
||
132 | |||
133 | /** |
||
134 | * {@inheritdoc} |
||
135 | */ |
||
136 | public function setActive($active) { |
||
140 | |||
141 | /** |
||
142 | * {@inheritdoc} |
||
143 | */ |
||
144 | public function setBlock($block) { |
||
148 | |||
149 | /** |
||
150 | * {@inheritdoc} |
||
151 | */ |
||
152 | public function setContent($content) { |
||
156 | |||
157 | /** |
||
158 | * {@inheritdoc} |
||
159 | */ |
||
160 | public function setDisabled($disabled) { |
||
164 | |||
165 | /** |
||
166 | * {@inheritdoc} |
||
167 | */ |
||
168 | public function setSize($size) { |
||
172 | |||
173 | /** |
||
174 | * {@inheritdoc} |
||
175 | */ |
||
176 | public function setTitle($title) { |
||
180 | |||
181 | /** |
||
182 | * {@inheritdoc} |
||
183 | */ |
||
184 | public function setType($type) { |
||
188 | |||
189 | } |
||
190 |