@@ -148,6 +148,9 @@ discard block |
||
| 148 | 148 | $this->name = $this->generateName(); |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | + /** |
|
| 152 | + * @param string $mimeType |
|
| 153 | + */ |
|
| 151 | 154 | private function getExtensionByMimeType($mimeType) |
| 152 | 155 | { |
| 153 | 156 | $extensions = FileHelper::getExtensionsByMimeType($mimeType); |
@@ -174,7 +177,7 @@ discard block |
||
| 174 | 177 | * Set a storage |
| 175 | 178 | * |
| 176 | 179 | * @param Storage $storage The Strorage for the file |
| 177 | - * @return string |
|
| 180 | + * @return File |
|
| 178 | 181 | */ |
| 179 | 182 | public function setStorage(Storage $storage) |
| 180 | 183 | { |
@@ -187,7 +190,7 @@ discard block |
||
| 187 | 190 | /** |
| 188 | 191 | * Get a storage |
| 189 | 192 | * |
| 190 | - * @return string |
|
| 193 | + * @return Storage |
|
| 191 | 194 | * @throws InvalidParamException |
| 192 | 195 | */ |
| 193 | 196 | public function getStorage() |
@@ -290,7 +293,7 @@ discard block |
||
| 290 | 293 | * |
| 291 | 294 | * @param int $ownerId The id of the owner |
| 292 | 295 | * @param int $ownerType The type of the owner |
| 293 | - * @return File|null |
|
| 296 | + * @return string |
|
| 294 | 297 | */ |
| 295 | 298 | public static function findOneByOwner($ownerId, $ownerType) |
| 296 | 299 | { |