This commit is contained in:
parent
de205f9870
commit
4e2db2f71c
8
.vscode/settings.json
vendored
Normal file
8
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"intelephense.environment.phpVersion": "7.0",
|
||||
"php.version": "v7.0",
|
||||
"php.completion.autoimport": "auto-import",
|
||||
"php.validate.executablePath": "/usr/local/bin/php",
|
||||
"php.validate.enable": true,
|
||||
"php.validate.run": "onType",
|
||||
}
|
@ -15,7 +15,7 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=8.2"
|
||||
"php": ">=7.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "*",
|
||||
@ -24,4 +24,4 @@
|
||||
"scripts": {
|
||||
"test": "phpunit"
|
||||
}
|
||||
}
|
||||
}
|
@ -4,8 +4,8 @@ namespace Nwb\MultiDownloaderClient;
|
||||
|
||||
class FileRequest
|
||||
{
|
||||
private string $url;
|
||||
private ?string $fallbackUrl;
|
||||
private $url;
|
||||
private $fallbackUrl;
|
||||
|
||||
public function __construct(string $url, string $fallbackUrl = null)
|
||||
{
|
||||
@ -32,7 +32,7 @@ class FileRequest
|
||||
return $this->url;
|
||||
}
|
||||
|
||||
public function getFallbackUrl(): ?string
|
||||
public function getFallbackUrl(): string
|
||||
{
|
||||
return $this->fallbackUrl;
|
||||
}
|
||||
|
@ -4,11 +4,11 @@ namespace Nwb\MultiDownloaderClient;
|
||||
|
||||
class MultiDownloaderClient
|
||||
{
|
||||
private string $url;
|
||||
private string $apiKey;
|
||||
private string $apiSecret;
|
||||
private $url;
|
||||
private $apiKey;
|
||||
private $apiSecret;
|
||||
|
||||
private array $files = [];
|
||||
private $files = [];
|
||||
/**
|
||||
* Constructeur pour initialiser la classe avec des options spécifiques.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user