Identifier   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 23
c 0
b 0
f 0
wmc 4
lcom 0
cbo 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getId() 0 3 1
A getTarget() 0 3 1
A __toString() 0 3 1
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
}