1 | <?php |
||
5 | class ChunkFileFactory |
||
6 | { |
||
7 | /** |
||
8 | * __construct. |
||
9 | * |
||
10 | * @param \Recca0120\Upload\Filesystem $files |
||
11 | */ |
||
12 | public function __construct(Filesystem $files = null) |
||
16 | |||
17 | /** |
||
18 | * create. |
||
19 | * |
||
20 | * @return \Recca0120\Upload\ChunkFile |
||
21 | */ |
||
22 | public function create($name, $chunksPath, $storagePath, $token = null) |
||
26 | } |
||
27 |
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: