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 | * Pop PHP Framework (http://www.popphp.org/) |
4 | * |
5 | * @link https://github.com/popphp/popphp-framework |
6 | * @author Nick Sagona, III <dev@nolainteractive.com> |
7 | * @copyright Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com) |
8 | * @license http://www.popphp.org/license New BSD License |
9 | */ |
10 | |
11 | /** |
12 | * @namespace |
13 | */ |
14 | namespace Pop\Acl\Assertion; |
15 | |
16 | use Pop\Acl\Acl; |
17 | use Pop\Acl\AclRole; |
18 | use Pop\Acl\AclResource; |
19 | |
20 | /** |
21 | * Assertion interface |
22 | * |
23 | * @category Pop |
24 | * @package Pop\Acl |
25 | * @author Nick Sagona, III <dev@nolainteractive.com> |
26 | * @copyright Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com) |
27 | * @license http://www.popphp.org/license New BSD License |
28 | * @version 4.0.0 |
29 | */ |
30 | interface AssertionInterface |
31 | { |
32 | |
33 | /** |
34 | * Evaluate assertion |
35 | * |
36 | * @param Acl $acl |
37 | * @param AclRole $role |
38 | * @param ?AclResource $resource |
39 | * @param mixed $permission |
40 | * @return bool |
41 | */ |
42 | public function assert(Acl $acl, AclRole $role, ?AclResource $resource = null, mixed $permission = null): bool; |
43 | |
44 | } |