original_string: public function setSubmitted($key, $data)
      {
          if (isset($key)) {
              gplcart_array_set($this->submitted, $key, $data);
              return $this->submitted;
          }
  
          return $this->submitted = (array) $data;
      }
code: public function setSubmitted($key, $data)
      {
          if (isset($key)) {
              gplcart_array_set($this->submitted, $key, $data);
              return $this->submitted;
          }
  
          return $this->submitted = (array) $data;
      }
code_tokens: public function setSubmitted ( $ key , $ data ) { if ( isset ( $ key ) ) { gplcart_array_set ( $ this -> submitted , $ key , $ data ) ; return $ this -> submitted ; } return $ this -> submitted = ( array ) $ data ; }
docstring: Sets a submitted data
  @param null|string $key
  @param mixed $data
  @return array
docstring_tokens: Sets a submitted data