mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
20 lines
349 B
PHP
20 lines
349 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Rest\Service;
|
|
|
|
use Shlinkio\Shlink\Rest\Entity\ApiKey;
|
|
|
|
final class ApiKeyCheckResult
|
|
{
|
|
public function __construct(public readonly ?ApiKey $apiKey = null)
|
|
{
|
|
}
|
|
|
|
public function isValid(): bool
|
|
{
|
|
return $this->apiKey !== null && $this->apiKey->isValid();
|
|
}
|
|
}
|