1 | <?php |
||
6 | class InsertQueryStringifier |
||
7 | { |
||
8 | |||
9 | /** |
||
10 | * @param InsertQueryBuilder $query |
||
11 | * @return array |
||
12 | */ |
||
13 | private static function initBuild(InsertQueryBuilder $query): array |
||
17 | |||
18 | /** |
||
19 | * @param InsertQueryBuilder $insertQuery |
||
20 | * @param array $parts |
||
21 | */ |
||
22 | private static function buildTable(InsertQueryBuilder $insertQuery, array &$parts) |
||
28 | |||
29 | /** |
||
30 | * @param InsertQueryBuilder $insertQuery |
||
31 | * @param array $parts |
||
32 | */ |
||
33 | private static function buildColumns(InsertQueryBuilder $insertQuery, array &$parts) |
||
40 | |||
41 | /** |
||
42 | * @param InsertQueryBuilder $insertQuery |
||
43 | * @param array $parts |
||
44 | */ |
||
45 | private static function buildValues(InsertQueryBuilder $insertQuery, array &$parts) |
||
58 | |||
59 | /** |
||
60 | * @param InsertQueryBuilder $insertQuery |
||
61 | * @param array $parts |
||
62 | */ |
||
63 | private static function buildDuplicateConditions(InsertQueryBuilder $insertQuery, array &$parts) |
||
76 | |||
77 | /** |
||
78 | * @param InsertQueryBuilder $insertQuery |
||
79 | * @return string |
||
80 | */ |
||
81 | public static function stringify(InsertQueryBuilder $insertQuery): string |
||
90 | } |
||
91 |
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.