| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function createApplication( |
||
| 24 | CreateApplicationRequest $request, |
||
| 25 | CreateApplicationWithTokenAction $action |
||
| 26 | ) { |
||
| 27 | |||
| 28 | $app = $action->run($request->name, $request->user()->id); |
||
|
|
|||
| 29 | |||
| 30 | return $this->response->accepted(null, [ |
||
| 31 | 'application_name' => $app->name, |
||
| 32 | 'application_id' => $app->id, |
||
| 33 | 'application_token' => $app->token, |
||
| 34 | ]); |
||
| 35 | } |
||
| 36 | |||
| 38 |
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.