1 | <?php |
||
18 | class SongController extends Controller |
||
19 | { |
||
20 | /** |
||
21 | * Play/stream a song. |
||
22 | * |
||
23 | * @link https://github.com/phanan/koel/wiki#streaming-music |
||
24 | * |
||
25 | * @param Request $request |
||
26 | * @param Song $song The song to stream. |
||
27 | * @param null|bool $transcode Whether to force transcoding the song. |
||
28 | * If this is omitted, by default Koel will transcode FLAC. |
||
29 | * @param null|int $bitRate The target bit rate to transcode, defaults to OUTPUT_BIT_RATE. |
||
30 | * Only taken into account if $transcode is truthy. |
||
31 | * |
||
32 | * @return RedirectResponse|Redirector |
||
33 | */ |
||
34 | public function play(Request $request, Song $song, $transcode = null, $bitRate = null) |
||
73 | |||
74 | /** |
||
75 | * Get extra information about a song via Last.fm. |
||
76 | * |
||
77 | * @param Song $song |
||
78 | * |
||
79 | * @return JsonResponse |
||
80 | */ |
||
81 | public function show(Song $song) |
||
90 | |||
91 | /** |
||
92 | * Update songs info. |
||
93 | * |
||
94 | * @param SongUpdateRequest $request |
||
95 | * |
||
96 | * @return JsonResponse |
||
97 | */ |
||
98 | public function update(SongUpdateRequest $request) |
||
102 | } |
||
103 |
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.