mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-07 15:53:13 +08:00
20 lines
353 B
PHP
20 lines
353 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Rest\Service;
|
|
|
|
use Shlinkio\Shlink\Rest\Entity\ApiKey;
|
|
|
|
final readonly class ApiKeyCheckResult
|
|
{
|
|
public function __construct(public ApiKey|null $apiKey = null)
|
|
{
|
|
}
|
|
|
|
public function isValid(): bool
|
|
{
|
|
return $this->apiKey !== null && $this->apiKey->isValid();
|
|
}
|
|
}
|