Completed
Pull Request — master (#12)
by Dominik
07:37 queued 14s
created

NullAuthorizationChecker   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 14
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0
ccs 0
cts 2
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A isAllowed() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Chubbyphp\Serialization\Authorization;
6
7
final class NullAuthorizationChecker implements AuthorizationCheckerInterface
8
{
9
    /**
10
     * @param object|string|null $role
11
     * @param object             $object
12
     * @param object|string|null $permission
13
     *
14
     * @return bool
15
     */
16
    public function isAllowed($role, $object, $permission): bool
17
    {
18
        return true;
19
    }
20
}
21