Conditions | 5 |
Paths | 7 |
Total Lines | 23 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 30 |
1 | <?php |
||
49 | ) { |
||
50 | $interface = call_user_func($this->route_class . '::' . $mtd); |
||
51 | // TODO: validate params and sentargs against definitions |
||
52 | $caller = new Caller($paystackObj); |
||
53 | return $caller->callEndpoint($interface, $params, $sentargs); |
||
54 | }; |
||
55 | $this->methods[$mtd] = \Closure::bind($mtdFunc, $this, get_class()); |
||
56 | } |
||
57 | } |
||
58 | } |
||
59 |