public function clearInformation()
    {
        if (!$this->hasCart() || $this->cart->isLocked()) {
            return $this;
        }

        $this->cart
            ->setCustomer(null)
            ->setCustomerGroup(null)
            ->setEmail(null)
            ->setCompany(null)
            ->setGender(null)
            ->setFirstName(null)
            ->setLastName(null)
            ->setInvoiceAddress(null)
            ->setDeliveryAddress(null)
            ->setSameAddress(true);

        $this->updateCustomerGroupAndCurrency();

        return $this;
    }
public function clearInformation()
    {
        if (!$this->hasCart() || $this->cart->isLocked()) {
            return $this;
        }

        $this->cart
            ->setCustomer(null)
            ->setCustomerGroup(null)
            ->setEmail(null)
            ->setCompany(null)
            ->setGender(null)
            ->setFirstName(null)
            ->setLastName(null)
            ->setInvoiceAddress(null)
            ->setDeliveryAddress(null)
            ->setSameAddress(true);

        $this->updateCustomerGroupAndCurrency();

        return $this;
    }
{@inheritdoc}