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

ForbidRule   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 10
c 0
b 0
f 0
rs 10
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A allows() 0 4 1
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
}