Passed
Branch version-4 (8b03a3)
by Sebastian
02:18
created

Tuple   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 20
ccs 0
cts 12
cp 0
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getFirst() 0 3 1
A __construct() 0 4 1
A getSecond() 0 3 1
1
<?php
2
3
namespace Seboettg\Collection\Lists;
4
5
use Seboettg\Collection\Map\Pair;
6
7
class Tuple implements TupleInterface
8
{
9
    private $first;
0 ignored issues
show
Coding Style introduced by
Private member variable "first" must contain a leading underscore
Loading history...
10
11
    private $second;
0 ignored issues
show
Coding Style introduced by
Private member variable "second" must contain a leading underscore
Loading history...
12
13
    public function __construct($first, $second)
14
    {
15
        $this->first = $first;
16
        $this->second = $second;
17
    }
18
19
    public function getFirst()
20
    {
21
        return $this->first;
22
    }
23
24
    public function getSecond()
25
    {
26
        return $this->second;
27
    }
28
}
29