ServiceMethod   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A profile() 0 6 1
A getMethodName() 0 3 1
1
<?php
2
3
/**
4
 * MIT License
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\Ratepay\Business\Request\Service\Method;
9
10
use SprykerEco\Shared\Ratepay\RatepayConfig;
11
use SprykerEco\Zed\Ratepay\Business\Api\Constants as ApiConstants;
12
13
/**
14
 * Service.
15
 */
16
class ServiceMethod extends AbstractMethod implements MethodInterface
17
{
18
    /**
19
     * @return string
20
     */
21
    public function getMethodName()
22
    {
23
        return RatepayConfig::METHOD_SERVICE;
24
    }
25
26
    /**
27
     * @return \SprykerEco\Zed\Ratepay\Business\Api\Model\Payment\Init
28
     */
29
    public function profile()
30
    {
31
        $request = $this->modelFactory->build(ApiConstants::REQUEST_MODEL_PROFILE);
32
        $this->mapHeadData();
33
34
        return $request;
35
    }
36
}
37