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

Guest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 12
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 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