Common/EventListener/AbstractSaleListener.php
protected function updateState(SaleInterface $sale)
    {
        if ($this->stateResolver->resolve($sale)) {
            $this->scheduleStateChangeEvent($sale);

            return true;
        }

        return false;
    }
protected function updateState(SaleInterface $sale)
    {
        if ($this->stateResolver->resolve($sale)) {
            $this->scheduleStateChangeEvent($sale);

            return true;
        }

        return false;
    }
Updates the state.

@param SaleInterface $sale

@return bool Whether the sale has been changed or not.

@throws \Ekyna\Component\Commerce\Exception\CommerceExceptionInterface