public function set($index, $value = null)
    {
        if (is_array($index)) {
            $this->data = array_merge($this->data, $index);
        } else {
            $this->data[$index] = $value;
        }
        return $this;
    }