20 lines
490 B
PHP
20 lines
490 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Uwil\ArcadiaApiPhpClient\Auth;
|
|
|
|
final readonly class RequestSignature
|
|
{
|
|
public function __construct(
|
|
public string $value,
|
|
public string $bodyHash,
|
|
) {
|
|
if (empty(mb_trim($value))) {
|
|
throw new \InvalidArgumentException('Signature value cannot be empty.');
|
|
}
|
|
if (empty(mb_trim($bodyHash))) {
|
|
throw new \InvalidArgumentException('Body hash cannot be empty.');
|
|
}
|
|
}
|
|
}
|