mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-08 00:03:12 +08:00
Updated to readonly public props on as many models as possible
This commit is contained in:
@@ -8,7 +8,7 @@ use Shlinkio\Shlink\Rest\Entity\ApiKey;
|
||||
|
||||
final class ApiKeyCheckResult
|
||||
{
|
||||
public function __construct(private ?ApiKey $apiKey = null)
|
||||
public function __construct(public readonly ?ApiKey $apiKey = null)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -16,9 +16,4 @@ final class ApiKeyCheckResult
|
||||
{
|
||||
return $this->apiKey !== null && $this->apiKey->isValid();
|
||||
}
|
||||
|
||||
public function apiKey(): ?ApiKey
|
||||
{
|
||||
return $this->apiKey;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user