| 1 | <?php |
||
| 17 | class CommentPolicy extends ProjectPolicy |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Determine if the current user has permissions. |
||
| 21 | * |
||
| 22 | * @param string $class |
||
| 23 | * @param string $method |
||
| 24 | * @param int $comment_id |
||
| 25 | * |
||
| 26 | * @throws \JsonRPC\Exception\AccessDeniedException |
||
| 27 | */ |
||
| 28 | public function check($class, $method, $comment_id) |
||
| 34 | } |
||
| 35 |
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@propertyannotation 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.