mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 12:13:13 +08:00
26 lines
504 B
PHP
26 lines
504 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Rest\Entity;
|
|
|
|
use Shlinkio\Shlink\Common\Entity\AbstractEntity;
|
|
use Shlinkio\Shlink\Rest\ApiKey\Role;
|
|
|
|
class ApiKeyRole extends AbstractEntity
|
|
{
|
|
public function __construct(public readonly Role $role, private array $meta, public readonly ApiKey $apiKey)
|
|
{
|
|
}
|
|
|
|
public function meta(): array
|
|
{
|
|
return $this->meta;
|
|
}
|
|
|
|
public function updateMeta(array $newMeta): void
|
|
{
|
|
$this->meta = $newMeta;
|
|
}
|
|
}
|