Identifier::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace rtens\domin\parameters;
3
4
class Identifier {
5
6
    private $target;
7
8
    private $id;
9
10
    public function __construct($target, $id) {
11
        $this->target = $target;
12
        $this->id = $id;
13
    }
14
15
    public function getId() {
16
        return $this->id;
17
    }
18
19
    public function getTarget() {
20
        return $this->target;
21
    }
22
23
    public function __toString() {
24
        return $this->id . ':' . $this->target;
25
    }
26
}