Passed
Push — master ( 5344c8...95850a )
by Artem
02:32
created

UserTrait::isAccountNonLocked()   B

Complexity

Conditions 5
Paths 7

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 5

Importance

Changes 0
Metric Value
cc 5
eloc 5
nc 7
nop 0
dl 0
loc 10
ccs 6
cts 6
cp 1
crap 5
rs 8.8571
c 0
b 0
f 0
1
<?php
2
3
//----------------------------------------------------------------------
4
//
5
//  Copyright (C) 2017-2018 Artem Rodygin
6
//
7
//  You should have received a copy of the MIT License along with
8
//  this file. If not, see <http://opensource.org/licenses/MIT>.
9
//
10
//----------------------------------------------------------------------
11
12
namespace LazySec\Entity;
13
14
use Doctrine\ORM\Mapping as ORM;
15
16
/**
17
 * User trait.
18
 *
19
 * @ORM\MappedSuperclass(repositoryClass="LazySec\Repository\UserRepositoryInterface")
20
 */
21
trait UserTrait
22
{
23
    /**
24
     * @see \Symfony\Component\Security\Core\User\UserInterface
25
     *
26
     * {@inheritdoc}
27
     */
28 1
    public function getPassword()
29
    {
30 1
        return null;
31
    }
32
33
    /**
34
     * @see \Symfony\Component\Security\Core\User\UserInterface
35
     *
36
     * {@inheritdoc}
37
     */
38 1
    public function getSalt()
39
    {
40 1
        return null;
41
    }
42
43
    /**
44
     * @see \Symfony\Component\Security\Core\User\UserInterface
45
     *
46
     * {@inheritdoc}
47
     */
48 1
    public function eraseCredentials()
49
    {
50 1
    }
51
}
52