public function onContentChange(OrderEvent $event)
    {
        $order = $event->getOrder();

        $this->calculator->updateTotals($order);
        $this->stateResolver->resolve($order, $event);
    }
public function onContentChange(OrderEvent $event)
    {
        $order = $event->getOrder();

        $this->calculator->updateTotals($order);
        $this->stateResolver->resolve($order, $event);
    }
public function onContentChange ( OrderEvent $ event ) { $ order = $ event -> getOrder ( ) ; $ this -> calculator -> updateTotals ( $ order ) ; $ this -> stateResolver -> resolve ( $ order , $ event ) ; }
Content change event handler.

@param OrderEvent $event
Content change event handler .