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

Decision   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 15
ccs 0
cts 10
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A root() 0 4 1
A bin() 0 6 1
1
<?php
2
3
namespace Yabacon\Paystack\Routes;
4
5
use Yabacon\Paystack\Contracts\RouteInterface;
6
7
class Decision implements RouteInterface
8
{
9
10
    public static function root()
11
    {
12
        return '/decision';
13
    }
14
15
    public static function bin()
16
    {
17
        return [RouteInterface::METHOD_KEY   => RouteInterface::GET_METHOD,
18
            RouteInterface::ENDPOINT_KEY => Decision::root() . '/bin/{bin}',
19
            RouteInterface::ARGS_KEY     => ['bin' ] ];
20
    }
21
}
22