Files
shlink/module/Rest/src/Entity/ApiKeyRole.php
2024-02-12 23:18:30 +01:00

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;
}
}