Passed
Push — feature/eco-2295/eco-2344-crea... ( cf26a9...497ce3 )
by Aleksey
03:09
created

CrefoPayApiConfig::getResultCodeOk()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 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\Shared\CrefoPayApi;
9
10
use Spryker\Shared\Kernel\AbstractBundleConfig;
11
12
class CrefoPayApiConfig extends AbstractBundleConfig
13
{
14
    public const API_FIELD_MAC = 'mac';
15
    public const RESULT_CODE_OK = 0;
16
    public const RESULT_CODE_REDIRECT = 1;
17
18
    /**
19
     * @return string
20
     */
21
    public function getApiFieldMac(): string
22
    {
23
        return static::API_FIELD_MAC;
24
    }
25
26
    /**
27
     * @return int
28
     */
29
    public function getResultCodeOk(): int
30
    {
31
        return static::RESULT_CODE_OK;
32
    }
33
34
    /**
35
     * @return int
36
     */
37
    public function getResultCodeRedirect(): int
38
    {
39
        return static::RESULT_CODE_REDIRECT;
40
    }
41
}
42