1 | <?php |
||
7 | class Plupload extends Api |
||
8 | { |
||
9 | /** |
||
10 | * receive. |
||
11 | * |
||
12 | * @param string $name |
||
13 | * @return \Symfony\Component\HttpFoundation\File\UploadedFile |
||
14 | * |
||
15 | * @throws \Recca0120\Upload\Exceptions\ChunkedResponseException |
||
16 | */ |
||
17 | 3 | public function receive($name) |
|
42 | |||
43 | /** |
||
44 | * completedResponse. |
||
45 | * |
||
46 | * @param \Illuminate\Http\JsonResponse $response |
||
47 | * @return \Illuminate\Http\JsonResponse |
||
48 | */ |
||
49 | 1 | public function completedResponse(JsonResponse $response) |
|
59 | } |
||
60 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: