1 | <?php |
||
25 | class BaseUserRelationQuery extends BaseBlameableQuery |
||
26 | { |
||
27 | use MutualQueryTrait; |
||
28 | |||
29 | /** |
||
30 | * Specify groups. |
||
31 | * This method will be skipped if not enable the group features (`$multiBlamesAttribute = false`). |
||
32 | * @param string|array $groups the guid of group If string, or guid array of |
||
33 | * groups if array. If you want to get ungrouped relation(s), please assign |
||
34 | * empty array, or if you do not want to delimit group(s), please do not |
||
35 | * access this method, or assign null. |
||
36 | * @return static $this |
||
37 | */ |
||
38 | 2 | public function groups($groups = []) |
|
52 | } |
||
53 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read 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.