Total Complexity | 22 |
Total Lines | 70 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | abstract class Forms |
||
13 | { |
||
14 | /** |
||
15 | * @var Column |
||
16 | */ |
||
17 | protected $column; |
||
18 | |||
19 | public $type = 'text'; |
||
20 | |||
21 | /** |
||
22 | * Forms constructor. |
||
23 | * @param Column $column |
||
24 | */ |
||
25 | public function __construct($column) |
||
26 | { |
||
27 | $this->column = $column; |
||
28 | } |
||
29 | |||
30 | abstract function template(); |
||
|
|||
31 | |||
32 | function getType() |
||
76 | } |
||
77 | } |
||
78 | |||
79 | function getFormStub($type) |
||
82 | } |
||
83 | } |
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.