Completed
Push — master ( 64e776...8a3d14 )
by Ibrahim
02:49
created

Transferrecipient::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 20
Code Lines 16

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 20
ccs 0
cts 20
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 16
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Yabacon\Paystack\Routes;
4
5
use Yabacon\Paystack\Contracts\RouteInterface;
6
7
class Transferrecipient implements RouteInterface
8
{
9
10
    public static function root()
11
    {
12
        return '/transferrecipient';
13
    }
14
15
    public static function create()
16
    {
17
        return [
18
            RouteInterface::METHOD_KEY   => RouteInterface::POST_METHOD,
19
            RouteInterface::ENDPOINT_KEY => Transferrecipient::root(),
20
            RouteInterface::PARAMS_KEY   => ['type',
21
                'name',
22
                'description',
23
                'metadata',
24
                'bank_code',
25
                'currency',
26
                'account_number' ],
27
            RouteInterface::REQUIRED_KEY => [
28
                RouteInterface::PARAMS_KEY => ['type',
29
                    'name',
30
                    'bank_code',
31
                    'account_number' ]
32
            ]
33
        ];
34
    }
35
36
    public static function getList()
37
    {
38
        return [
39
            RouteInterface::METHOD_KEY   => RouteInterface::GET_METHOD,
40
            RouteInterface::ENDPOINT_KEY => Transferrecipient::root(),
41
            RouteInterface::PARAMS_KEY   => ['perPage',
42
                'page' ]
43
        ];
44
    }
45
}
46