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; } } } }