Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 10 |
Ratio | 100 % |
Tests | 6 |
CRAP Score | 2.0116 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | 2 | protected function mapUrl(JobBase $job) : Url { |
|
24 | 2 | if (!$job instanceof JobExchangeDelete) { |
|
25 | throw new WrongArgumentException($job, JobExchangeDelete::class); |
||
26 | } |
||
27 | |||
28 | 2 | $url = 'exchanges'; |
|
29 | 2 | $url .= '/'.urlencode((string)$job->getVirtualHost()); |
|
30 | 2 | $url .= '/'.urlencode((string)$job->getExchangeName()); |
|
31 | 2 | return new Url($url); |
|
32 | } |
||
33 | } |
||
34 |