public function setMethod($method)
    {
        if(!in_array(strtoupper($method), $this->allowedMethods)) {
          throw new \InvalidArgumentException("The HTTP Client doesn't accept $method requests.");
        }

        $this->method = $method;
        return $this;
    }
public function setMethod($method)
    {
        if(!in_array(strtoupper($method), $this->allowedMethods)) {
          throw new \InvalidArgumentException("The HTTP Client doesn't accept $method requests.");
        }

        $this->method = $method;
        return $this;
    }
public function setMethod ( $ method ) { if ( ! in_array ( strtoupper ( $ method ) , $ this -> allowedMethods ) ) { throw new \ InvalidArgumentException ( "The HTTP Client doesn't accept $method requests." ) ; } $ this -> method = $ method ; return $ this ; }
Set the request HTTP method
@param string $method The request HTTP method
@return Ebanx\Http\AbstractClient A "Ebanx\Http\AbstractClient" subclass object
@throws InvalidArgumentException
Set the request HTTP method