original_string: public function cart(array &$submitted, array $options = array())
      {
          $this->options = $options;
          $this->submitted = &$submitted;
  
          $this->validateCart();
          $this->validateStoreId();
          $this->validateProductCart();
          $this->validateSkuCart();
          $this->validateUserCartId();
          $this->validateOrderCart();
          $this->validateQuantityCart();
          $this->validateOptionsCart();
          $this->validateLimitCart();
          $this->validateData();
  
          $this->unsetSubmitted('update');
  
          return $this->getResult();
      }
code: public function cart(array &$submitted, array $options = array())
      {
          $this->options = $options;
          $this->submitted = &$submitted;
  
          $this->validateCart();
          $this->validateStoreId();
          $this->validateProductCart();
          $this->validateSkuCart();
          $this->validateUserCartId();
          $this->validateOrderCart();
          $this->validateQuantityCart();
          $this->validateOptionsCart();
          $this->validateLimitCart();
          $this->validateData();
  
          $this->unsetSubmitted('update');
  
          return $this->getResult();
      }
code_tokens: public function cart ( array & $ submitted , array $ options = array ( ) ) { $ this -> options = $ options ; $ this -> submitted = & $ submitted ; $ this -> validateCart ( ) ; $ this -> validateStoreId ( ) ; $ this -> validateProductCart ( ) ; $ this -> validateSkuCart ( ) ; $ this -> validateUserCartId ( ) ; $ this -> validateOrderCart ( ) ; $ this -> validateQuantityCart ( ) ; $ this -> validateOptionsCart ( ) ; $ this -> validateLimitCart ( ) ; $ this -> validateData ( ) ; $ this -> unsetSubmitted ( 'update' ) ; return $ this -> getResult ( ) ; }
docstring: Performs full cart data validation
  @param array $submitted
  @param array $options
  @return boolean|array
docstring_tokens: Performs full cart data validation