Integration::updatePaymentSessionTimeout()   A
last analyzed

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 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 6
ccs 4
cts 4
cp 1
crap 1
rs 10
1
<?php
2
3
namespace Yabacon\Paystack\Routes;
4
5
use Yabacon\Paystack\Contracts\RouteInterface;
6
7
class Integration implements RouteInterface
8
{
9
10 3
    public static function root()
11
    {
12 3
        return '/integration';
13
    }
14
15 2
    public static function paymentSessionTimeout()
16
    {
17 2
        return [ RouteInterface::METHOD_KEY   => RouteInterface::GET_METHOD,
18 2
            RouteInterface::ENDPOINT_KEY => Integration::root() . '/payment_session_timeout',
19 2
            RouteInterface::PARAMS_KEY   => [] ];
20
    }
21
22 2
    public static function updatePaymentSessionTimeout()
23
    {
24
        return [
25 2
            RouteInterface::METHOD_KEY   => RouteInterface::PUT_METHOD,
26 2
            RouteInterface::ENDPOINT_KEY => Integration::root() . '/payment_session_timeout',
27 2
            RouteInterface::PARAMS_KEY   => ['timeout'],
28 2
        ];
29
    }
30
}
31