protected function getCart()
    {
        if (null === $this->cart) {
            $this->cart = $this->getSession() ? $this->getSession()->getSessionCart($this->dispatcher) : null;
        }

        return $this->cart;
    }
protected function getCart()
    {
        if (null === $this->cart) {
            $this->cart = $this->getSession() ? $this->getSession()->getSessionCart($this->dispatcher) : null;
        }

        return $this->cart;
    }
protected function getCart ( ) { if ( null === $ this -> cart ) { $ this -> cart = $ this -> getSession ( ) ? $ this -> getSession ( ) -> getSessionCart ( $ this -> dispatcher ) : null ; } return $ this -> cart ; }
Get the cart from the session

@return \Thelia\Model\Cart|null
Get the cart from the session