Completed
Push — master ( 8a29f8...30084f )
by Márk
07:40
created

UserPasswordPair::setPassword()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Http\Message\Authentication;
4
5
/**
6
 * Trait implementing the common username-password pattern.
7
 *
8
 * @author Márk Sági-Kazár <[email protected]>
9
 */
10
trait UserPasswordPair
11
{
12
    /**
13
     * @var string
14
     */
15
    private $username;
16
17
    /**
18
     * @var string
19
     */
20
    private $password;
21
22
    /**
23
     * Returns the username.
24
     *
25
     * @return string
26
     */
27 2
    public function getUsername()
28
    {
29 2
        return $this->username;
30
    }
31
32
    /**
33
     * Returns the password.
34
     *
35
     * @return string
36
     */
37 2
    public function getPassword()
38
    {
39 2
        return $this->password;
40
    }
41
}
42