29 lines
627 B
PHP
29 lines
627 B
PHP
<?php
|
|
namespace app\core\contract;
|
|
|
|
interface Authentication {
|
|
|
|
const KEY = 'logged_in';
|
|
|
|
public static function login(array $userData): bool;
|
|
|
|
public static function logout();
|
|
|
|
public static function auth(): array;
|
|
|
|
public static function isAuth(): bool;
|
|
|
|
public static function isFirstLogin(): bool;
|
|
|
|
public static function isRemembered(): bool;
|
|
|
|
public static function isBoUser(): bool;
|
|
|
|
public static function isFOUser(): bool;
|
|
|
|
public static function isLoggedInAsSubscriber(): bool;
|
|
|
|
public static function isLoggedBySSO(): bool;
|
|
|
|
public static function isPremium(): bool;
|
|
} |