Completed
Branch feature/pre-split (afd44c)
by Anton
07:02
created

ForbidRule::allows()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 3
rs 10
1
<?php
2
/**
3
 * components
4
 *
5
 * @author    Wolfy-J
6
 */
7
namespace Spiral\Security\Rules;
8
9
use Spiral\Core\Container\SingletonInterface;
10
use Spiral\Security\ActorInterface;
11
use Spiral\Security\RuleInterface;
12
13
/**
14
 * Always negative rule.
15
 */
16
final class ForbidRule implements RuleInterface, SingletonInterface
17
{
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function allows(ActorInterface $actor, string $permission, array $context): bool
22
    {
23
        return false;
24
    }
25
}