|
|
|
|
|
|
|
|
if($entity instanceof OrderShopInterface) { |
|
|
if($entity instanceof OrderShopInterface) { |
|
|
return $this->getSumOrderProducts($entity->getOrderProducts(), $withTax, $withReduction) ; |
|
|
return $this->getSumOrderProducts($entity->getOrderProducts(), $withTax, $withReduction) ; |
|
|
} |
|
|
} |
|
|
if($entity instanceof Collection) { |
|
|
|
|
|
|
|
|
if($entity instanceof Collection || is_array($entity)) { |
|
|
return $this->getSumOrderProducts($entity, $withTax, $withReduction) ; |
|
|
return $this->getSumOrderProducts($entity, $withTax, $withReduction) ; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |