|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @return Collection|OrderPayment[] |
|
|
* @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; |
|
|
return $this->orderPayments; |
|
|
} |
|
|
} |
|
|
|
|
|
|