Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | // ╔════════════════════════════════════════════════════════════╗ |
| 4 | // ║ MIT Licence (#Expat) - https://opensource.org/licenses/MIT ║ |
| 5 | // ║ Copyright 2026 Frederic Poeydomenge <dyno@phexium.com> ║ |
| 6 | // ╚════════════════════════════════════════════════════════════╝ |
| 7 | |
| 8 | declare(strict_types=1); |
| 9 | |
| 10 | namespace Phexium\Plugin\Authorization\Port; |
| 11 | |
| 12 | interface AuthorizationInterface |
| 13 | { |
| 14 | public function can(SubjectInterface $subject, string $permission): bool; |
| 15 | |
| 16 | public function canAny(SubjectInterface $subject, array $permissions): bool; |
| 17 | |
| 18 | public function canAll(SubjectInterface $subject, array $permissions): bool; |
| 19 | |
| 20 | public function getPermissions(SubjectInterface $subject): array; |
| 21 | |
| 22 | public function getAllPermissions(): array; |
| 23 | |
| 24 | public function getAllSubjects(): array; |
| 25 | } |