Total Complexity | 5 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
18 | class SimpleSaleRepository implements SaleRepositoryInterface |
||
19 | { |
||
20 | protected $sale; |
||
21 | |||
22 | public function __construct(SaleInterface $sale) |
||
23 | { |
||
24 | $this->sale = $sale; |
||
25 | } |
||
26 | |||
27 | public function findByAction(ActionInterface $action) |
||
|
|||
28 | { |
||
29 | return $this->sale; |
||
30 | } |
||
31 | |||
32 | public function findByOrder(OrderInterface $order) |
||
33 | { |
||
34 | $sales = []; |
||
35 | foreach ($order->getActions() as $actionKey => $action) { |
||
36 | $sales[$actionKey] = $this->findByAction($action); |
||
37 | } |
||
38 | |||
39 | return $sales; |
||
40 | } |
||
41 | |||
42 | public function findByIds(array $ids) |
||
45 | } |
||
46 | } |
||
47 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.