| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function addOrderItemToSuccessLog(int $idPaymentBraintree, int $idPaymentBrainreeOrderItem): void |
||
| 40 | { |
||
| 41 | $paymentBraintreeTransactionStatusLogEntity = $this->getFactory() |
||
| 42 | ->createPaymentBraintreeTransactionStatusLogQuery()->findOneByFkPaymentBraintree($idPaymentBraintree); |
||
| 43 | |||
| 44 | if ($paymentBraintreeTransactionStatusLogEntity) { |
||
| 45 | $paymentBraintreeTransactionStatusLogEntity->setFkPaymentBraintreeOrderItem($idPaymentBrainreeOrderItem); |
||
| 46 | $paymentBraintreeTransactionStatusLogEntity->save(); |
||
| 47 | } |
||
| 50 |