UserTrait::getPassword()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
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