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