Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function store(NoteRequest $request) |
||
20 | { |
||
21 | $data = [ |
||
22 | 'noteable_id' => $request->noteable_id, |
||
|
|||
23 | 'noteable_type' => $request->noteable_type, |
||
24 | 'title' => $request->title, |
||
25 | ]; |
||
26 | |||
27 | Note::create($data); |
||
28 | |||
29 | return back()->with('success', trans('Added successfully')); |
||
30 | } |
||
31 | |||
53 |
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.