| 1 | <?php |
||
| 8 | abstract class LoadCostsDecorator |
||
| 9 | { |
||
| 10 | private $next_load_cost; |
||
| 11 | |||
| 12 | 1 | public function __construct(self $next_load_cost = null) |
|
| 16 | |||
| 17 | 1 | public function __invoke(Load $a_load, Destination $a_destination, array $some_price_rules, float $net_benefits, float $previous_costs = 0) |
|
| 23 | |||
| 24 | abstract protected function applyCosts(Load $a_load, Destination $a_destination, array $some_price_rules, float $net_benefits, float $previous_costs = 0): float; |
||
| 25 | |||
| 26 | 1 | private function next($a_load, $a_destination, $some_price_rules, $net_benefits, $costs) |
|
| 35 | } |