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