MapResult::getConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace mcorten87\rabbitmq_api\objects;
4
5
class MapResult
6
{
7
    /**
8
     * @var Method
9
     */
10
    private $method;
11
12
    /** @return Method */
13 62
    public function getMethod()
14
    {
15 62
        return $this->method;
16
    }
17
18
    /**
19
     * @var Url
20
     */
21
    private $url;
22
23
    /** @return Url */
24 62
    public function getUrl()
25
    {
26 62
        return $this->url;
27
    }
28
29
    /**
30
     * @var array
31
     */
32
    private $config;
33
34
    /** @return array */
35 49
    public function getConfig()
36
    {
37 49
        return $this->config;
38
    }
39
40 64
    public function __construct(Method $method, Url $url, array $config)
41
    {
42 64
        $this->method = $method;
43 64
        $this->url = $url;
44 64
        $this->config = $config;
45 64
    }
46
}
47