| 1 | <?php |
||
| 20 | class ProjectPolicy extends Base |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Determine if the current user has permissions. |
||
| 24 | * |
||
| 25 | * @param string $class |
||
| 26 | * @param string $method |
||
| 27 | * @param int $project_id |
||
| 28 | * |
||
| 29 | * @throws \JsonRPC\Exception\AccessDeniedException |
||
| 30 | */ |
||
| 31 | public function check($class, $method, $project_id) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Check project permmision. |
||
| 40 | * |
||
| 41 | * @param string $class |
||
| 42 | * @param string $method |
||
| 43 | * @param int $project_id |
||
| 44 | * |
||
| 45 | * @throws \JsonRPC\Exception\AccessDeniedException |
||
| 46 | */ |
||
| 47 | protected function checkProjectPermission($class, $method, $project_id) |
||
| 59 | } |
||
| 60 |
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.