30 lines
677 B
PHP
Executable File
30 lines
677 B
PHP
Executable File
<?php
|
|
/**************************
|
|
* API AuthSystem *
|
|
* 08-12-2016 *
|
|
***************************
|
|
* Designed & Developed by *
|
|
* xdrm-brackets *
|
|
***************************
|
|
* https://xdrm.io/ *
|
|
**************************/
|
|
|
|
namespace api\core;
|
|
|
|
use \error\core\Err;
|
|
use \error\core\Error;
|
|
|
|
interface AuthSystem{
|
|
|
|
/** VERIFICATION DES ACCES EN FONCTION DE PERMISSIONS ATTENDUES
|
|
*
|
|
* @param array $expected Liste des permissions attendues
|
|
*
|
|
* @return Error Erreur associée à la permission (Success/PermissionError/TokenError/etc)
|
|
*
|
|
*/
|
|
public static function permission(array $expected) : Error;
|
|
}
|
|
|
|
?>
|