src/Request.php
public function getInput() {
		if (!isset($this->input)) {
			switch ($this->method) {
			case 'POST':
				switch ($this->getContentType()) {
				case 'application/x-www-form-urlencoded':
				case 'multipart/form-data':
					$this->input = $_POST;
					break;

				default:
					$this->input = $this->getParamsFromInput();
					break;
				}
				break;

			case 'PUT':
			case 'DELETE':
				$this->input = $this->getParamsFromInput();
				break;

			default:
				$this->input = [];
				break;
			}
		}

		return $this->input;
	}
public function getInput() {
		if (!isset($this->input)) {
			switch ($this->method) {
			case 'POST':
				switch ($this->getContentType()) {
				case 'application/x-www-form-urlencoded':
				case 'multipart/form-data':
					$this->input = $_POST;
					break;

				default:
					$this->input = $this->getParamsFromInput();
					break;
				}
				break;

			case 'PUT':
			case 'DELETE':
				$this->input = $this->getParamsFromInput();
				break;

			default:
				$this->input = [];
				break;
			}
		}

		return $this->input;
	}
public function getInput ( ) { if ( ! isset ( $ this -> input ) ) { switch ( $ this -> method ) { case 'POST' : switch ( $ this -> getContentType ( ) ) { case 'application/x-www-form-urlencoded' : case 'multipart/form-data' : $ this -> input = $ _POST ; break ; default : $ this -> input = $ this -> getParamsFromInput ( ) ; break ; } break ; case 'PUT' : case 'DELETE' : $ this -> input = $ this -> getParamsFromInput ( ) ; break ; default : $ this -> input = [ ] ; break ; } } return $ this -> input ; }
Return HTTP POST, PUT or DELETE variables.

@return array
Return HTTP POST PUT or DELETE variables .