1 | <?php |
||
12 | class StkController extends Controller |
||
13 | { |
||
14 | /** |
||
15 | * @param StkRequest $request |
||
16 | * @return \Illuminate\Http\JsonResponse |
||
17 | */ |
||
18 | public function initiatePush(StkRequest $request) |
||
30 | |||
31 | /** |
||
32 | * @param $reference |
||
33 | * @return \Illuminate\Http\JsonResponse |
||
34 | */ |
||
35 | public function stkStatus($reference) |
||
39 | } |
||
40 |
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.