Completed
Branch feature/pre-split (197e7e)
by Anton
03:26
created

NullActor   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 getRoles() 0 4 1
1
<?php
2
/**
3
 * Spiral Framework.
4
 *
5
 * @license   MIT
6
 * @author    Anton Titov (Wolfy-J)
7
 */
8
namespace Spiral\Security\Actors;
9
10
use Spiral\Security\ActorInterface;
11
12
/**
13
 * Actor without any roles.
14
 */
15
class NullActor implements ActorInterface
16
{
17
    /**
18
     * {@inheritdoc}
19
     */
20
    public function getRoles(): array
21
    {
22
        return [];
23
    }
24
}