feat : Composite permission
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Interface\Test\Composite;
|
||||
|
||||
interface PermissionComponentInterface
|
||||
{
|
||||
/**
|
||||
* @param string $permission
|
||||
* @return bool
|
||||
*/
|
||||
public function check(string $permission): bool;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName(): string;
|
||||
}
|
||||
Reference in New Issue
Block a user