Completed
Push — master ( 36f304...247c01 )
by Artem
03:05
created

UserTrait::isAccountNonLocked()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
//----------------------------------------------------------------------
4
//
5
//  Copyright (C) 2017 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 Pignus\Model;
13
14
use Doctrine\ORM\Mapping as ORM;
15
16
/**
17
 * User trait.
18
 *
19
 * @ORM\MappedSuperclass
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
    /**
53
     * @see \Symfony\Component\Security\Core\User\AdvancedUserInterface
54
     *
55
     * {@inheritdoc}
56
     */
57 1
    public function isEnabled()
58
    {
59 1
        return true;
60
    }
61
62
    /**
63
     * @see \Symfony\Component\Security\Core\User\AdvancedUserInterface
64
     *
65
     * {@inheritdoc}
66
     */
67 1
    public function isAccountNonExpired()
68
    {
69 1
        return true;
70
    }
71
72
    /**
73
     * @see \Symfony\Component\Security\Core\User\AdvancedUserInterface
74
     *
75
     * {@inheritdoc}
76
     */
77 1
    public function isCredentialsNonExpired()
78
    {
79 1
        return true;
80
    }
81
82
    /**
83
     * @see \Symfony\Component\Security\Core\User\AdvancedUserInterface
84
     *
85
     * {@inheritdoc}
86
     */
87 1
    public function isAccountNonLocked()
88
    {
89 1
        return true;
90
    }
91
}
92