Completed
Push — master ( dd94bd...da08c1 )
by Evan
04:57 queued 02:56
created

DictionaryGateway::getEmploymentStatuses()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 8
ccs 0
cts 8
cp 0
rs 9.4285
cc 1
eloc 5
nc 1
nop 1
crap 2
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
    public function getEmploymentStatuses($token)
27
    {
28
        return $this->fetchDocument(
29
            '/v4/dictionaries/employment-status',
30
            $token,
31
            'Dictionary Employment Status'
32
        );
33
    }
34
35
    /**
36
     * @author EA
37
     * @param $token
38
     * @return array
39
     */
40
    public function getMaritalStatuses($token)
41
    {
42
        return $this->fetchDocument(
43
            '/v4/dictionaries/marital-status',
44
            $token,
45
            'Dictionary Martial Status'
46
        );
47
    }
48
49
    /**
50
     * @author EA
51
     * @param $token
52
     * @return array
53
     */
54
    public function getResidentialStatuses($token)
55
    {
56
        return $this->fetchDocument(
57
            '/v4/dictionaries/residential-status',
58
            $token,
59
            'Dictionary Residential Status'
60
        );
61
    }
62
}
63
64