| 1 | <?php |
||
| 20 | class AddOwnerAfterUserAddedHandler |
||
| 21 | { |
||
| 22 | use DispatchesJobs; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Handle the comment updated moment. |
||
| 26 | */ |
||
| 27 | public function handle(UserEventInterface $event) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Trigger the moment. |
||
| 38 | * |
||
| 39 | * @param \Gitamin\Models\User $user |
||
| 40 | */ |
||
| 41 | protected function trigger(User &$user) |
||
| 53 | } |
||
| 54 |
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.