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

Tuple::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 2
rs 10
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