Passed
Pull Request — feature/eco-2295/dev (#1)
by Aleksey
06:04 queued 04:31
created

CaptureRequest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRequestType() 0 3 1
A getUrl() 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 CaptureRequest extends AbstractRequest implements CrefoPayApiRequestInterface
11
{
12
    protected const REQUEST_TYPE = 'capture';
13
14
    /**
15
     * @return string
16
     */
17
    public function getRequestType(): string
18
    {
19
        return static::REQUEST_TYPE;
20
    }
21
22
    /**
23
     * @return string
24
     */
25
    public function getUrl(): string
26
    {
27
        return $this->config->getCaptureActionUrl();
28
    }
29
}
30