65c1b5fb75
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
24 lines
650 B
PHP
24 lines
650 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace KTXC\Context;
|
|
|
|
use KTXC\Models\Identity\User;
|
|
|
|
interface IdentityContextInterface
|
|
{
|
|
public function present(): bool;
|
|
public function identity(): ?User;
|
|
public function identifier(): ?string;
|
|
public function requireIdentifier(): string;
|
|
public function label(): ?string;
|
|
public function mailAddress(): ?string;
|
|
public function nameFirst(): ?string;
|
|
public function nameLast(): ?string;
|
|
public function permissions(): array;
|
|
public function roles(): array;
|
|
public function hasPermission(string $permission): bool;
|
|
public function hasRole(string $role): bool;
|
|
}
|