Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | function init() |
||
10 | { |
||
11 | $this->addField(new IntField('radius', 30)); |
||
12 | $this->addField(new ColorField('color', 'ffffff')); |
||
13 | $this->addField(new IntField('smoothness', 2)); |
||
14 | |||
15 | $this->addField(new CheckboxField('top-left', true)); |
||
16 | $this->addField(new CheckboxField('top-right', true)); |
||
17 | $this->addField(new CheckboxField('bottom-right', true)); |
||
18 | $this->addField(new CheckboxField('bottom-left', true)); |
||
19 | } |
||
43 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.