1 | <?php |
||
9 | class File extends AbstractEntity |
||
10 | { |
||
11 | const ENTITY_TYPE = 'File'; |
||
12 | |||
13 | protected $file_id; |
||
14 | |||
15 | protected $file_size; |
||
16 | |||
17 | protected $file_path; |
||
18 | |||
19 | /** |
||
20 | * @return mixed |
||
21 | */ |
||
22 | public function getFileId() |
||
26 | |||
27 | /** |
||
28 | * @param mixed $file_id |
||
29 | * |
||
30 | * @return $this |
||
31 | */ |
||
32 | public function setFileId($file_id) |
||
38 | |||
39 | /** |
||
40 | * @return mixed |
||
41 | */ |
||
42 | public function getFileSize() |
||
46 | |||
47 | /** |
||
48 | * @param mixed $file_size |
||
49 | * |
||
50 | * @return $this |
||
51 | */ |
||
52 | public function setFileSize($file_size) |
||
58 | |||
59 | /** |
||
60 | * @return mixed |
||
61 | */ |
||
62 | public function getFilePath() |
||
66 | |||
67 | /** |
||
68 | * @param mixed $file_path |
||
69 | * |
||
70 | * @return $this |
||
71 | */ |
||
72 | public function setFilePath($file_path) |
||
78 | |||
79 | public function getFullPath() |
||
95 | |||
96 | public function download($storePath) |
||
118 | } |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: