Completed
Pull Request — master (#1)
by Woody
23:31 queued 01:08
created

Credentials::getPassword()   A

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;
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
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