Credentials   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 7
dl 0
loc 36
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getUsername() 0 3 1
A getPassword() 0 3 1
1
<?php
2
3
namespace PFlorek\BasicAuth;
4
5
class Credentials implements CredentialsInterface
6
{
7
    /**
8
     * @var string
9
     */
10
    private $username;
11
12
    /**
13
     * @var string
14
     */
15
    private $password;
16
17
    /**
18
     * @param string $username
19
     * @param string $password
20
     */
21
    public function __construct($username, $password)
22
    {
23
        $this->username = $username;
24
        $this->password = $password;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getUsername()
31
    {
32
        return $this->username;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getPassword()
39
    {
40
        return $this->password;
41
    }
42
43
}