Completed
Push — master ( 21e79a...88f484 )
by Mathijs
03:02
created

JobConnectionListAllMapper::mapUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
declare(strict_types=1);
3
namespace mcorten87\rabbitmq_api\mappers;
4
5
use mcorten87\rabbitmq_api\jobs\JobBase;
6
use mcorten87\rabbitmq_api\jobs\JobBindingListAll;
7
use mcorten87\rabbitmq_api\jobs\JobConnectionListAll;
8
use mcorten87\rabbitmq_api\objects\Method;
9
use mcorten87\rabbitmq_api\objects\Url;
10
use mcorten87\rabbitmq_api\services\MqManagementConfig;
11
12
class JobConnectionListAllMapper extends BaseMapper
13
{
14
15
    /**
16
     * @return Method
17
     */
18 1
    protected function mapMethod() : Method
19
    {
20 1
        return new Method(Method::GET);
21
    }
22
23
    /**
24
     * @param JobConnectionListAll $job
25
     * @return Url
26
     */
27 1
    protected function mapUrl(JobBase $job) : Url
28
    {
29 1
        $url = 'connections';
30 1
        return new Url($url);
31
    }
32
}
33