|
|
@@ -303,8 +303,20 @@ abstract class OrderShop extends AbstractEntity implements FilterMerchantInterfa |
|
|
|
/** |
|
|
|
* @return Collection|OrderPayment[] |
|
|
|
*/ |
|
|
|
public function getOrderPayments(): Collection |
|
|
|
public function getOrderPayments($meanPayment = null): Collection |
|
|
|
{ |
|
|
|
if($meanPayment) { |
|
|
|
$orderPaymentsReturn = new ArrayCollection() ; |
|
|
|
|
|
|
|
foreach($this->orderPayments as $orderPayment) { |
|
|
|
if($orderPayment->getMeanPayment() == $meanPayment) { |
|
|
|
$orderPaymentsReturn[] = $orderPayment ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return $orderPaymentsReturn ; |
|
|
|
} |
|
|
|
|
|
|
|
return $this->orderPayments; |
|
|
|
} |
|
|
|
|