post = $_POST; } } /** * Get value from $_POST * * @param string $key - Key of $_POST * * @return mixed */ public function get($key = false) { if (!$key) { if (!empty($this->post)) { return $this->post; } else { return array(); } } else { if (isset($this->post[$key])) { return $this->post[$key]; } else { return null; } } } /** * Set option by Key * * @param string $key - Key of option * @param mixed $value - Value of option */ public function set($key, $value) { $this->post[$key] = $value; } }