Test Failed
Push — develop ( 28e0cd...307ddb )
by Daniel
05:05
created

TokenUser   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 5
eloc 5
dl 0
loc 24
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getUsername() 0 3 1
A getPassword() 0 3 1
A eraseCredentials() 0 2 1
A getSalt() 0 3 1
A getRoles() 0 3 1
1
<?php
2
3
namespace Silverback\ApiComponentBundle\Entity\User;
4
5
use Symfony\Component\Security\Core\User\UserInterface;
6
7
class TokenUser implements UserInterface
8
{
9
    public function getRoles(): array
10
    {
11
        return ['ROLE_TOKEN_USER'];
12
    }
13
14
    public function getPassword(): ?string
15
    {
16
        return null;
17
    }
18
19
    public function getSalt(): ?string
20
    {
21
        return null;
22
    }
23
24
    public function getUsername(): string
25
    {
26
        return 'token_user';
27
    }
28
29
    public function eraseCredentials(): void
30
    {
31
    }
32
}
33