original_string: public function getData($key = null, $default = null)
      {
          if (!isset($key)) {
              return $this->data;
          }
  
          $result = gplcart_array_get($this->data, $key);
          return isset($result) ? $result : $default;
      }
code: public function getData($key = null, $default = null)
      {
          if (!isset($key)) {
              return $this->data;
          }
  
          $result = gplcart_array_get($this->data, $key);
          return isset($result) ? $result : $default;
      }
code_tokens: public function getData ( $ key = null , $ default = null ) { if ( ! isset ( $ key ) ) { return $ this -> data ; } $ result = gplcart_array_get ( $ this -> data , $ key ) ; return isset ( $ result ) ? $ result : $ default ; }
docstring: Returns a value from an array of template variables
  @param string|array|null $key
  @param mixed
  @return mixed
docstring_tokens: Returns a value from an array of template variables