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

CancelRequest::getUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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