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 | 9 | public function __construct(QueryBuilderFacade $facade) |
|
55 | |||
56 | /** |
||
57 | * @param callable $callback |
||
|
|||
58 | * |
||
59 | * @return BuilderInterface |
||
60 | */ |
||
61 | 2 | public function getQueryBuilder(callable $callback = null) |
|
67 | |||
68 | /** |
||
69 | * @return ParameterCollectionInterface |
||
70 | */ |
||
71 | 2 | public function getParameters() |
|
75 | |||
76 | /** |
||
77 | * @return ReferenceCollectionInterface |
||
78 | */ |
||
79 | 4 | public function getReferences() |
|
83 | |||
84 | /** |
||
85 | * @param mixed $table |
||
86 | * @param null|string $alias |
||
87 | * |
||
88 | * @return AbstractTable |
||
89 | */ |
||
90 | 2 | public function addRootTable($table, $alias = null) |
|
97 | |||
98 | /** |
||
99 | * @return AbstractTable[] |
||
100 | */ |
||
101 | 3 | public function getRootTables() |
|
105 | |||
106 | /** |
||
107 | * @param mixed $table |
||
108 | * @param null|string $alias |
||
109 | * |
||
110 | * @return AbstractTable |
||
111 | */ |
||
112 | 2 | public function createTable($table, $alias = null) |
|
122 | |||
123 | /** |
||
124 | * @inheritdoc |
||
125 | */ |
||
126 | 1 | public function toReference($stuff) |
|
130 | |||
131 | /** |
||
132 | * @inheritdoc |
||
133 | */ |
||
134 | 1 | public function setParameter($name, $value) |
|
141 | |||
142 | /** |
||
143 | * @return Query |
||
144 | */ |
||
145 | 1 | public function buildQuery() |
|
153 | |||
154 | /** |
||
155 | * @inheritdoc |
||
156 | */ |
||
157 | 2 | public function buildSQL() |
|
161 | } |
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.