src/mako/http/Request.php
public function getData(): Parameters
	{
		if($this->realMethod === 'GET')
		{
			return $this->getQuery();
		}
		elseif($this->realMethod === 'POST' && $this->hasFormData())
		{
			return $this->getPost();
		}

		return $this->getBody();
	}
public function getData(): Parameters
	{
		if($this->realMethod === 'GET')
		{
			return $this->getQuery();
		}
		elseif($this->realMethod === 'POST' && $this->hasFormData())
		{
			return $this->getPost();
		}

		return $this->getBody();
	}
public function getData ( ) : Parameters { if ( $ this -> realMethod === 'GET' ) { return $ this -> getQuery ( ) ; } elseif ( $ this -> realMethod === 'POST' && $ this -> hasFormData ( ) ) { return $ this -> getPost ( ) ; } return $ this -> getBody ( ) ; }
Returns the data of the current request method.

@return \mako\http\request\Parameters
Returns the data of the current request method .