You are here

public function RequestTrait::getMethod in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-diactoros/src/RequestTrait.php \Zend\Diactoros\RequestTrait::getMethod()

Retrieves the HTTP method of the request.

Return value

string Returns the request method.

File

vendor/zendframework/zend-diactoros/src/RequestTrait.php, line 166

Class

RequestTrait
Trait with common request behaviors.

Namespace

Zend\Diactoros

Code

public function getMethod() {
  return $this->method;
}