1 | <?php |
||
25 | abstract class AbstractBuilder |
||
26 | { |
||
27 | 30 | public function __construct() |
|
34 | |||
35 | /** |
||
36 | * @return AbstractBuilder |
||
37 | */ |
||
38 | 27 | public function getQueryBuilder() |
|
42 | |||
43 | /** |
||
44 | * @return TableFactoryInterface |
||
45 | */ |
||
46 | 26 | public function getTableFactory() |
|
50 | |||
51 | /** |
||
52 | * @return QueryCompilerInterface |
||
53 | */ |
||
54 | 27 | public function getQueryCompiler() |
|
58 | |||
59 | /** |
||
60 | * @return ParameterManagerInterface |
||
61 | */ |
||
62 | 13 | public function getParameterManager() |
|
66 | |||
67 | /** |
||
68 | * @return ReferenceManager |
||
69 | */ |
||
70 | 27 | public function getReferenceManager() |
|
74 | } |
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: