1 | <?php |
||
5 | final class SelectQueryStringifier |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @return array |
||
10 | */ |
||
11 | private static function initBuild(SelectQueryBuilder $query): array |
||
20 | |||
21 | /** |
||
22 | * @param array $parts |
||
23 | */ |
||
24 | private static function buildColumns(SelectQueryBuilder $query, array &$parts) |
||
28 | |||
29 | /** |
||
30 | * @param array $parts |
||
31 | */ |
||
32 | private static function buildFrom(SelectQueryBuilder $query, array &$parts) |
||
38 | |||
39 | /** |
||
40 | * @param array $parts |
||
41 | */ |
||
42 | private static function buildJoins(SelectQueryBuilder $query, array &$parts) |
||
54 | |||
55 | /** |
||
56 | * @param array $parts |
||
57 | */ |
||
58 | private static function buildWhere(SelectQueryBuilder $query, array &$parts) |
||
64 | |||
65 | /** |
||
66 | * @param array $parts |
||
67 | */ |
||
68 | private static function buildGroupBy(SelectQueryBuilder $query, array &$parts) |
||
74 | |||
75 | /** |
||
76 | * @param array $parts |
||
77 | */ |
||
78 | private static function buildHaving(SelectQueryBuilder $query, array &$parts) |
||
84 | |||
85 | /** |
||
86 | * @param array $parts |
||
87 | */ |
||
88 | private static function buildOrderBy(SelectQueryBuilder $query, array &$parts) |
||
94 | |||
95 | /** |
||
96 | * @param array $parts |
||
97 | */ |
||
98 | private static function buildLimit(SelectQueryBuilder $query, array &$parts) |
||
104 | |||
105 | /** |
||
106 | * @param array $parts |
||
107 | */ |
||
108 | private static function buildOffset(SelectQueryBuilder $query, array &$parts) |
||
114 | |||
115 | /** |
||
116 | * @param SelectQueryBuilder $query |
||
117 | * @return string |
||
118 | */ |
||
119 | public static function stringify(SelectQueryBuilder $query): string |
||
133 | } |
||
134 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.