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

CaptureRequest::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 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