public function offsetSet($key, $value) { $this->execute(); if ($key === null) { return $this->result[] = $value; } else { return $this->result[$key] = $value; } }