Passed
Push — feature/eco-2295/eco-2344-crea... ( 1e5ae0...217e63 )
by Aleksey
01:02
created

CancelRequest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getUrl() 0 3 1
A getHttpMethod() 0 3 1
1
<?php
2
3
/**
4
 * MIT License
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace SprykerEco\Zed\CrefoPayApi\Business\Request;
9
10
class CancelRequest extends AbstractRequest implements CrefoPayApiRequestInterface
11
{
12
    /**
13
     * @return string
14
     */
15
    public function getUrl(): string
16
    {
17
        return $this->config->getCancelActionUrl();
18
    }
19
20
    /**
21
     * @return string
22
     */
23
    public function getHttpMethod(): string
24
    {
25
        return static::METHOD_POST;
26
    }
27
}
28