|
3 | 3 | namespace Krlove\Generator\Model; |
4 | 4 |
|
5 | 5 | use Krlove\Generator\Exception\ValidationException; |
| 6 | +use Krlove\Generator\Model\Traits\AbstractModifierTrait; |
6 | 7 | use Krlove\Generator\Model\Traits\AccessModifierTrait; |
7 | 8 | use Krlove\Generator\Model\Traits\DocBlockTrait; |
| 9 | +use Krlove\Generator\Model\Traits\FinalModifierTrait; |
| 10 | +use Krlove\Generator\Model\Traits\StaticModifierTrait; |
8 | 11 | use Krlove\Generator\RenderableModel; |
9 | 12 |
|
10 | 13 | /** |
|
14 | 17 | */ |
15 | 18 | class MethodModel extends RenderableModel |
16 | 19 | { |
| 20 | + use AbstractModifierTrait; |
17 | 21 | use AccessModifierTrait; |
18 | 22 | use DocBlockTrait; |
| 23 | + use FinalModifierTrait; |
| 24 | + use StaticModifierTrait; |
19 | 25 |
|
20 | 26 | /** |
21 | 27 | * @var string |
22 | 28 | */ |
23 | 29 | protected $name; |
24 | 30 |
|
25 | | - /** |
26 | | - * @var boolean |
27 | | - */ |
28 | | - protected $static; |
29 | | - |
30 | | - /** |
31 | | - * @var boolean |
32 | | - */ |
33 | | - protected $final; |
34 | | - |
35 | | - /** |
36 | | - * @var boolean; |
37 | | - */ |
38 | | - protected $abstract; |
39 | | - |
40 | 31 | /** |
41 | 32 | * @var ArgumentModel[] |
42 | 33 | */ |
@@ -159,63 +150,6 @@ public function addArgument(ArgumentModel $argument) |
159 | 150 | return $this; |
160 | 151 | } |
161 | 152 |
|
162 | | - /** |
163 | | - * @return boolean |
164 | | - */ |
165 | | - public function isStatic() |
166 | | - { |
167 | | - return $this->static; |
168 | | - } |
169 | | - |
170 | | - /** |
171 | | - * @param boolean $static |
172 | | - * @return $this |
173 | | - */ |
174 | | - public function setStatic($static = true) |
175 | | - { |
176 | | - $this->static = boolval($static); |
177 | | - |
178 | | - return $this; |
179 | | - } |
180 | | - |
181 | | - /** |
182 | | - * @return boolean |
183 | | - */ |
184 | | - public function isFinal() |
185 | | - { |
186 | | - return $this->final; |
187 | | - } |
188 | | - |
189 | | - /** |
190 | | - * @param boolean $final |
191 | | - * @return $this |
192 | | - */ |
193 | | - public function setFinal($final = true) |
194 | | - { |
195 | | - $this->final = boolval($final); |
196 | | - |
197 | | - return $this; |
198 | | - } |
199 | | - |
200 | | - /** |
201 | | - * @return boolean |
202 | | - */ |
203 | | - public function isAbstract() |
204 | | - { |
205 | | - return $this->abstract; |
206 | | - } |
207 | | - |
208 | | - /** |
209 | | - * @param boolean $abstract |
210 | | - * @return $this |
211 | | - */ |
212 | | - public function setAbstract($abstract = true) |
213 | | - { |
214 | | - $this->abstract = boolval($abstract); |
215 | | - |
216 | | - return $this; |
217 | | - } |
218 | | - |
219 | 153 | /** |
220 | 154 | * @return string |
221 | 155 | */ |
|
0 commit comments