2020-08-31 01:27:08 +08:00
|
|
|
<?php
|
2020-10-29 18:17:25 +08:00
|
|
|
declare(strict_types=1);
|
2020-08-31 01:27:08 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace HttpServer\IInterface;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Interface AuthIdentity
|
2021-08-11 01:04:57 +08:00
|
|
|
* @package Kiri\Kiri\Http
|
2020-08-31 01:27:08 +08:00
|
|
|
*/
|
|
|
|
|
interface AuthIdentity
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function getIdentity();
|
|
|
|
|
|
2021-02-08 17:03:37 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return string|int
|
|
|
|
|
* 获取唯一识别码
|
|
|
|
|
*/
|
|
|
|
|
public function getUniqueId(): string|int;
|
|
|
|
|
|
2020-08-31 01:27:08 +08:00
|
|
|
}
|