1 | <?php |
||
24 | abstract class AbstractBuilder implements BuilderInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var QueryBuilderFacade |
||
28 | */ |
||
29 | private $facade; |
||
30 | |||
31 | /** |
||
32 | * @var ReferenceCollectionInterface |
||
33 | */ |
||
34 | private $referenceCollection; |
||
35 | |||
36 | /** |
||
37 | * @var ParameterCollectionInterface |
||
38 | */ |
||
39 | private $parameterCollection; |
||
40 | |||
41 | /** |
||
42 | * @var AbstractTable[] $tables |
||
43 | */ |
||
44 | private $rootTables = []; |
||
45 | |||
46 | /** |
||
47 | * @param QueryBuilderFacade $facade |
||
48 | */ |
||
49 | 8 | public function __construct(QueryBuilderFacade $facade) |
|
55 | |||
56 | /** |
||
57 | * @return BuilderInterface |
||
58 | */ |
||
59 | 1 | public function getQueryBuilder() |
|
63 | |||
64 | /** |
||
65 | * @return ParameterCollectionInterface |
||
66 | */ |
||
67 | 2 | public function getParameters() |
|
71 | |||
72 | /** |
||
73 | * @return ReferenceCollectionInterface |
||
74 | */ |
||
75 | 4 | public function getReferences() |
|
79 | |||
80 | /** |
||
81 | * @param mixed $table |
||
82 | * @param string $alias |
||
|
|||
83 | * |
||
84 | * @return AbstractTable |
||
85 | */ |
||
86 | 2 | public function addRootTable($table, $alias = null) |
|
92 | |||
93 | /** |
||
94 | * @return AbstractTable[] |
||
95 | */ |
||
96 | 3 | public function getRootTables() |
|
100 | |||
101 | /** |
||
102 | * @param mixed $table |
||
103 | * @param string|null $alias |
||
104 | * |
||
105 | * @return AbstractTable |
||
106 | */ |
||
107 | 2 | public function createTable($table, $alias = null) |
|
121 | |||
122 | /** |
||
123 | * @inheritdoc |
||
124 | */ |
||
125 | 1 | public function objectToString($object) |
|
129 | |||
130 | /** |
||
131 | * @inheritdoc |
||
132 | */ |
||
133 | 1 | public function setParameter($name, $value) |
|
140 | |||
141 | /** |
||
142 | * @return Query |
||
143 | */ |
||
144 | 1 | public function buildQuery() |
|
152 | |||
153 | /** |
||
154 | * @inheritdoc |
||
155 | */ |
||
156 | 2 | public function buildSQL() |
|
160 | } |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.