Credentials   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 38
ccs 8
cts 8
cp 1
rs 10

3 Methods

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