1 | <?php |
||
12 | class LinksController extends Controller |
||
13 | { |
||
14 | /** |
||
15 | * Display a listing of the resource. |
||
16 | * |
||
17 | * @return \Illuminate\Http\Response |
||
18 | */ |
||
19 | public function index() |
||
23 | |||
24 | /** |
||
25 | * Display the specified resource. |
||
26 | * |
||
27 | * @param Link $link |
||
28 | * |
||
29 | * @return \Illuminate\Http\Response |
||
30 | * @internal param int $id |
||
31 | */ |
||
32 | public function show(Link $link) |
||
38 | |||
39 | /** |
||
40 | * Remove the specified resource from storage. |
||
41 | * |
||
42 | * @param Link $link |
||
43 | * |
||
44 | * @return \Illuminate\Http\Response |
||
45 | * @internal param int $id |
||
46 | */ |
||
47 | public function destroy(Link $link) |
||
57 | } |
||
58 |
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.