public function setSubmitted($key, $data)
    {
        if (isset($key)) {
            gplcart_array_set($this->submitted, $key, $data);
            return $this->submitted;
        }

        return $this->submitted = (array) $data;
    }
public function setSubmitted($key, $data)
    {
        if (isset($key)) {
            gplcart_array_set($this->submitted, $key, $data);
            return $this->submitted;
        }

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