Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
26 | 1 | private function next($a_load, $a_destination, $some_price_rules, $net_benefits, $costs) |
|
27 | { |
||
28 | 1 | if (null === $this->next_load_cost) |
|
29 | { |
||
30 | 1 | return -$costs; |
|
31 | } |
||
32 | |||
33 | 1 | return $this->next_load_cost->__invoke($a_load, $a_destination, $some_price_rules, $net_benefits, $costs); |
|
34 | } |
||
35 | } |