feat: some stuff

This commit is contained in:
Vincent
2024-08-26 14:02:12 +02:00
parent 3e3ea66848
commit 7861eaf5db
8 changed files with 30 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ class NamecheapConnector extends AbstractConnector
public const SANDBOX_BASE_URL = 'http://api.sandbox.namecheap.com/xml.response';
public function __construct(private HttpClientInterface $client, private string $outgoingIp)
public function __construct(private HttpClientInterface $client, private readonly string $outgoingIp)
{
}
@@ -44,7 +44,7 @@ class NamecheapConnector extends AbstractConnector
private static function mergePrefixKeys(string $prefix, array|object $src, array &$dest)
{
foreach ($src as $key => $value) {
$dest[$prefix . $key] = $value;
$dest[$prefix.$key] = $value;
}
}
@@ -72,5 +72,6 @@ class NamecheapConnector extends AbstractConnector
public static function verifyAuthData(array $authData, HttpClientInterface $client): array
{
return $authData;
}
}