1 | <?php |
||
13 | class SplitItemBuilder implements Builder |
||
14 | { |
||
15 | use BuilderUtils; |
||
16 | |||
17 | public function __construct(Builder $parent) |
||
21 | |||
22 | public function build() : SplitItem |
||
28 | |||
29 | public function setSubMenuParents(CliMenu $menu) : void |
||
35 | |||
36 | public function getTerminal() : Terminal |
||
40 | |||
41 | public function getMenuStyle() : MenuStyle |
||
45 | |||
46 | public function end() : CliMenuBuilder |
||
50 | } |
||
51 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: