original_string: protected function setPriceRule($rule_id)
      {
          $this->data_rule = array();
  
          if (is_numeric($rule_id)) {
              $this->data_rule = $this->price_rule->get($rule_id);
              if (empty($this->data_rule)) {
                  $this->outputHttpStatus(404);
              }
          }
      }
code: protected function setPriceRule($rule_id)
      {
          $this->data_rule = array();
  
          if (is_numeric($rule_id)) {
              $this->data_rule = $this->price_rule->get($rule_id);
              if (empty($this->data_rule)) {
                  $this->outputHttpStatus(404);
              }
          }
      }
code_tokens: protected function setPriceRule ( $ rule_id ) { $ this -> data_rule = array ( ) ; if ( is_numeric ( $ rule_id ) ) { $ this -> data_rule = $ this -> price_rule -> get ( $ rule_id ) ; if ( empty ( $ this -> data_rule ) ) { $ this -> outputHttpStatus ( 404 ) ; } } }
docstring: Returns an array of price rule data
  @param null|integer $rule_id
docstring_tokens: Returns an array of price rule data