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

Transferrecipient   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 39
ccs 0
cts 33
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A root() 0 4 1
A create() 0 20 1
A getList() 0 9 1
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