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

Guest::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 with defined actor.
14
 */
15
class Guest implements ActorInterface
16
{
17
    const ROLE = 'guest';
18
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function getRoles(): array
23
    {
24
        return [static::ROLE];
25
    }
26
}
27