Passed
Push — master ( a72252...676227 )
by Gergely
02:22
created

DictionaryGateway::getMaritalStatuses()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
/*
3
 * This file is part of the PayBreak/basket package.
4
 *
5
 * (c) PayBreak <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace PayBreak\Sdk\Gateways;
12
13
/**
14
 * Class DictionaryGateway
15
 *
16
 * @author EA
17
 * @package PayBreak\Sdk\Gateways
18
 */
19
class DictionaryGateway extends AbstractGateway
20
{
21
    /**
22
     * @author EA
23
     * @param $token
24
     * @return array
25
     */
26 1
    public function getEmploymentStatuses($token)
27
    {
28 1
        return $this->fetchDocument(
29 1
            '/v4/dictionaries/employment-status',
30 1
            $token,
31
            'Dictionary Employment Status'
32 1
        );
33
    }
34
35
    /**
36
     * @author EA
37
     * @param $token
38
     * @return array
39
     */
40 1
    public function getMaritalStatuses($token)
41
    {
42 1
        return $this->fetchDocument(
43 1
            '/v4/dictionaries/marital-status',
44 1
            $token,
45
            'Dictionary Martial Status'
46 1
        );
47
    }
48
49
    /**
50
     * @author EA
51
     * @param $token
52
     * @return array
53
     */
54 1
    public function getResidentialStatuses($token)
55
    {
56 1
        return $this->fetchDocument(
57 1
            '/v4/dictionaries/residential-status',
58 1
            $token,
59
            'Dictionary Residential Status'
60 1
        );
61
    }
62
63
    /**
64
     * @author EB
65
     * @param $token
66
     * @return array
67
     */
68 1
    public function getUploadDocumentTypes($token)
69
    {
70 1
        return $this->fetchDocument(
71 1
            '/v4/dictionaries/upload-document-types',
72 1
            $token,
73
            'Dictionary Document Upload Types'
74 1
        );
75
    }
76
}
77