/** * @param OrderInterface $order * @param string $signature */ private function logCalculatedSignature(OrderInterface $order, $signature) { $this->logger->debug(sprintf('Signature for order with id %s was calculated to "%s"', $order->getOrderId(), $signature)); }
/** * @param OrderInterface $order * @param AutocompleteStrategyInterface $strategy */ private function logAutocompletion(OrderInterface $order, AutocompleteStrategyInterface $strategy) { $this->logger->info(sprintf('Order with ID %s parameters were autocompleted by %s', $order->getOrderId(), get_class($strategy)), ['order' => $order, 'strategy' => $strategy]); }
/** * @param OrderInterface $order * @param string $description * @param string|null $bankDescription * @param MoneyInterface|null $amount */ public function __construct(OrderInterface $order, $description, $bankDescription = null, MoneyInterface $amount = null) { $this->orderId = $order->getOrderId(); $this->refund = new RefundModel($description, $bankDescription, $amount); }
/** * @param OrderInterface $order */ private function logSpecifiedGroups(OrderInterface $order) { $this->logger->debug(sprintf('Serialization groups for order %s were specified to %s', $order->getOrderId(), print_r($this->groups, true))); }