UserTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 2
c 2
b 0
f 1
lcom 0
cbo 0
dl 0
loc 27
ccs 0
cts 5
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPassword() 0 4 1
A setPassword() 0 4 1
1
<?php
2
/**
3
 * @author Stefano Torresi (http://stefanotorresi.it)
4
 * @license See the file LICENSE.txt for copying permission.
5
 * ************************************************
6
 */
7
8
namespace Thorr\OAuth2\Entity;
9
10
trait UserTrait
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $password;
16
17
    /**
18
     * Get password.
19
     *
20
     * @return string
21
     */
22
    public function getPassword()
23
    {
24
        return $this->password;
25
    }
26
27
    /**
28
     * Set password.
29
     *
30
     * @param string $password
31
     */
32
    public function setPassword($password)
33
    {
34
        $this->password = (string) $password;
35
    }
36
}
37