original_string: protected function setError($key, $error)
      {
          gplcart_array_set($this->errors, $this->getKeyPath($key), $error);
          return $this->errors;
      }
code: protected function setError($key, $error)
      {
          gplcart_array_set($this->errors, $this->getKeyPath($key), $error);
          return $this->errors;
      }
code_tokens: protected function setError ( $ key , $ error ) { gplcart_array_set ( $ this -> errors , $ this -> getKeyPath ( $ key ) , $ error ) ; return $ this -> errors ; }
docstring: Sets a validation error
  @param string|array $key
  @param string $error
  @return array
docstring_tokens: Sets a validation error