22 lines
465 B
PHP
22 lines
465 B
PHP
|
<?php
|
||
|
|
||
|
namespace api\core;
|
||
|
|
||
|
use \error\core\Err;
|
||
|
use \error\core\Error;
|
||
|
|
||
|
interface AuthSystem{
|
||
|
|
||
|
/* VERIFICATION DES ACCES EN FONCTION DE PERMISSIONS ATTENDUES
|
||
|
*
|
||
|
* @module<String> Module concerné
|
||
|
* @expected<array> Liste des permissions attendues
|
||
|
*
|
||
|
* @return error<Error> Erreur associée à la permission (Success/PermissionError/TokenError/etc)
|
||
|
*
|
||
|
*/
|
||
|
public static function permission($module, $expected);
|
||
|
}
|
||
|
|
||
|
?>
|