original_string: public function getCompleteMessage(array $order)
      {
          $vars = array(
              '@num' => $order['order_id'],
              '@status' => $this->getStatusName($order['status'])
          );
  
          if (is_numeric($order['user_id'])) {
              $message = $this->translation->text('Thank you for your order! Order ID: @num, status: @status', $vars);
          } else {
              $message = $this->translation->text('Thank you for your order! Order ID: @num, status: @status', $vars);
          }
  
          $this->hook->attach('order.complete.message', $message, $order, $this);
          return $message;
      }
code: public function getCompleteMessage(array $order)
      {
          $vars = array(
              '@num' => $order['order_id'],
              '@status' => $this->getStatusName($order['status'])
          );
  
          if (is_numeric($order['user_id'])) {
              $message = $this->translation->text('Thank you for your order! Order ID: @num, status: @status', $vars);
          } else {
              $message = $this->translation->text('Thank you for your order! Order ID: @num, status: @status', $vars);
          }
  
          $this->hook->attach('order.complete.message', $message, $order, $this);
          return $message;
      }
code_tokens: public function getCompleteMessage ( array $ order ) { $ vars = array ( '@num' => $ order [ 'order_id' ] , '@status' => $ this -> getStatusName ( $ order [ 'status' ] ) ) ; if ( is_numeric ( $ order [ 'user_id' ] ) ) { $ message = $ this -> translation -> text ( 'Thank you for your order! Order ID: @num, status: @status' , $ vars ) ; } else { $ message = $ this -> translation -> text ( 'Thank you for your order! Order ID: @num, status: @status' , $ vars ) ; } $ this -> hook -> attach ( 'order.complete.message' , $ message , $ order , $ this ) ; return $ message ; }
docstring: Returns the checkout complete message
  @param array $order
  @return string
docstring_tokens: Returns the checkout complete message