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

Integration   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 24
ccs 0
cts 18
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A root() 0 4 1
A paymentSessionTimeout() 0 6 1
A updatePaymentSessionTimeout() 0 8 1
1
<?php
2
3
namespace Yabacon\Paystack\Routes;
4
5
use Yabacon\Paystack\Contracts\RouteInterface;
6
7
class Integration implements RouteInterface
8
{
9
10
    public static function root()
11
    {
12
        return '/integration';
13
    }
14
15
    public static function paymentSessionTimeout()
16
    {
17
        return [ RouteInterface::METHOD_KEY   => RouteInterface::GET_METHOD,
18
            RouteInterface::ENDPOINT_KEY => Integration::root() . '/payment_session_timeout',
19
            RouteInterface::PARAMS_KEY   => [] ];
20
    }
21
22
    public static function updatePaymentSessionTimeout()
23
    {
24
        return [
25
            RouteInterface::METHOD_KEY   => RouteInterface::PUT_METHOD,
26
            RouteInterface::ENDPOINT_KEY => Customer::root() . '/payment_session_timeout',
27
            RouteInterface::PARAMS_KEY   => ['timeout'],
28
        ];
29
    }
30
}
31