/** * @param ChainOfResponsibility\Order $order * @return string */ public function sendNotification(ChainOfResponsibility\Order $order) { return sprintf('Dear %s %s, your order has been shipped! Your tracking number: %s', $order->getCustomerFirstName(), $order->getCustomerLastName(), $order->getTrackingNumber()); }
/** * @param ChainOfResponsibility\Order $order * @return string */ public function sendNotification(ChainOfResponsibility\Order $order) { return sprintf('Dear %s %s, thank you for your order (id: %d). We will ship it shortly!', $order->getCustomerFirstName(), $order->getCustomerLastName(), $order->getUid()); }