@@ -21,6 +21,8 @@ |
||
| 21 | 21 | /** |
| 22 | 22 | * Constructor method. |
| 23 | 23 | * |
| 24 | + * @param string $key |
|
| 25 | + * @param string $disk |
|
| 24 | 26 | * @return void |
| 25 | 27 | */ |
| 26 | 28 | public function __construct($key, $disk) |
@@ -71,6 +71,9 @@ |
||
| 71 | 71 | } |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | + /** |
|
| 75 | + * @param string $type |
|
| 76 | + */ |
|
| 74 | 77 | public function copyToMediaLibrary(string $pathToFile, Media $media, ?string $type = null, ?string $targetFileName = null) |
| 75 | 78 | { |
| 76 | 79 | $destinationFileName = $targetFileName ?: pathinfo($pathToFile, PATHINFO_BASENAME); |