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

NullActor::getRoles()   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 0
rs 10
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
}