Download
in package
Wrapper around download methods
Table of Contents
Properties
Methods
- __construct() : mixed
- url() : mixed
- __getDownloader() : IDownloader
- Picks downloader from env variable
Properties
$downloader
private
IDownloader
$downloader
Methods
__construct()
public
__construct([string $method = DownloadMethods::DEFAULT ][, array<string|int, mixed> $config = [] ]) : mixed
Parameters
- $method : string = DownloadMethods::DEFAULT
- $config : array<string|int, mixed> = []
url()
public
url(string $item[, mixed $file_name = "tiktok-video" ][, mixed $watermark = true ]) : mixed
Parameters
- $item : string
- $file_name : mixed = "tiktok-video"
- $watermark : mixed = true
__getDownloader()
Picks downloader from env variable
private
__getDownloader(string $method, array<string|int, mixed> $config) : IDownloader
Parameters
- $method : string
- $config : array<string|int, mixed>