original_string: public function priceRule(array &$submitted, array $options = array())
      {
          $this->options = $options;
          $this->submitted = &$submitted;
  
          $this->validatePriceRule();
          $this->validateName();
          $this->validateWeight();
          $this->validateBool('status');
          $this->validateUsedPriceRule();
          $this->validateTriggerPriceRule();
          $this->validateCurrencyPriceRule();
          $this->validateValueTypePriceRule();
          $this->validateCodePriceRule();
          $this->validateValuePriceRule();
  
          $this->unsetSubmitted('update');
  
          return $this->getResult();
      }
code: public function priceRule(array &$submitted, array $options = array())
      {
          $this->options = $options;
          $this->submitted = &$submitted;
  
          $this->validatePriceRule();
          $this->validateName();
          $this->validateWeight();
          $this->validateBool('status');
          $this->validateUsedPriceRule();
          $this->validateTriggerPriceRule();
          $this->validateCurrencyPriceRule();
          $this->validateValueTypePriceRule();
          $this->validateCodePriceRule();
          $this->validateValuePriceRule();
  
          $this->unsetSubmitted('update');
  
          return $this->getResult();
      }
code_tokens: public function priceRule ( array & $ submitted , array $ options = array ( ) ) { $ this -> options = $ options ; $ this -> submitted = & $ submitted ; $ this -> validatePriceRule ( ) ; $ this -> validateName ( ) ; $ this -> validateWeight ( ) ; $ this -> validateBool ( 'status' ) ; $ this -> validateUsedPriceRule ( ) ; $ this -> validateTriggerPriceRule ( ) ; $ this -> validateCurrencyPriceRule ( ) ; $ this -> validateValueTypePriceRule ( ) ; $ this -> validateCodePriceRule ( ) ; $ this -> validateValuePriceRule ( ) ; $ this -> unsetSubmitted ( 'update' ) ; return $ this -> getResult ( ) ; }
docstring: Performs full price rule validation
  @param array $submitted
  @param array $options
  @return array|boolean
docstring_tokens: Performs full price rule validation