public withMethod ( string $method ) : self | ||
$method | string | Case-insensitive method. |
return | self |
public function withMethod($method)
{
$this->validateMethod($method);
$new = clone $this;
$new->method = $method;
return $new;
}