Credentials::getIdentifier()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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