1 | <?php |
||
10 | class SickController extends Controller |
||
11 | { |
||
12 | public function __construct() |
||
16 | |||
17 | /** |
||
18 | * Display a listing of the resource. |
||
19 | * |
||
20 | * @return \Illuminate\Http\Response |
||
21 | */ |
||
22 | public function index() |
||
27 | |||
28 | /** |
||
29 | * Show the form for creating a new resource. |
||
30 | * |
||
31 | * @return \Illuminate\Http\Response |
||
32 | */ |
||
33 | public function create() |
||
38 | |||
39 | /** |
||
40 | * Store a newly created resource in storage. |
||
41 | * |
||
42 | * @param \Illuminate\Http\Request $request |
||
43 | * @return \Illuminate\Http\Response |
||
44 | */ |
||
45 | public function store(Request $request) |
||
83 | |||
84 | /** |
||
85 | * Display the specified resource. |
||
86 | * |
||
87 | * @param int $id |
||
88 | * @return \Illuminate\Http\Response |
||
89 | */ |
||
90 | public function show($id) |
||
95 | |||
96 | /** |
||
97 | * Show the form for editing the specified resource. |
||
98 | * |
||
99 | * @param int $id |
||
100 | * @return \Illuminate\Http\Response |
||
101 | */ |
||
102 | public function edit($id) |
||
106 | |||
107 | /** |
||
108 | * Update the specified resource in storage. |
||
109 | * |
||
110 | * @param \Illuminate\Http\Request $request |
||
111 | * @param int $id |
||
112 | * @return \Illuminate\Http\Response |
||
113 | */ |
||
114 | public function update(Request $request, $id) |
||
118 | |||
119 | /** |
||
120 | * Remove the specified resource from storage. |
||
121 | * |
||
122 | * @param int $id |
||
123 | * @return \Illuminate\Http\Response |
||
124 | */ |
||
125 | public function destroy($id) |
||
129 | } |
||
130 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write 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.