Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | class Map |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | private $sources = []; |
||
13 | |||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | private $targets = []; |
||
18 | |||
19 | /** |
||
20 | * @param string $source |
||
21 | * @param string $target |
||
22 | */ |
||
23 | 3 | public function addMapping($source, $target) |
|
24 | { |
||
25 | 3 | $this->sources[] = $source; |
|
26 | 3 | $this->targets[] = $target; |
|
27 | 3 | } |
|
28 | |||
29 | /** |
||
30 | * @return array |
||
31 | */ |
||
32 | 3 | public function getSources() |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return array |
||
39 | */ |
||
40 | 3 | public function getTargets() |
|
43 | } |
||
44 | } |