mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 09:43:13 +08:00
Add ORPHAN_VISITS_EXCLUDED API key role
This commit is contained in:
@@ -9,13 +9,24 @@ use Shlinkio\Shlink\Rest\ApiKey\Role;
|
||||
|
||||
class ApiKeyRole extends AbstractEntity
|
||||
{
|
||||
public function __construct(private Role $roleName, private array $meta, private ApiKey $apiKey)
|
||||
public function __construct(public readonly Role $role, private array $meta, public readonly ApiKey $apiKey)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use property access directly
|
||||
*/
|
||||
public function role(): Role
|
||||
{
|
||||
return $this->roleName;
|
||||
return $this->role;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use property access directly
|
||||
*/
|
||||
public function apiKey(): ApiKey
|
||||
{
|
||||
return $this->apiKey;
|
||||
}
|
||||
|
||||
public function meta(): array
|
||||
@@ -27,9 +38,4 @@ class ApiKeyRole extends AbstractEntity
|
||||
{
|
||||
$this->meta = $newMeta;
|
||||
}
|
||||
|
||||
public function apiKey(): ApiKey
|
||||
{
|
||||
return $this->apiKey;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user