Tebru\Retrofit\Event\BeforeSendEvent::getMethod PHP Method

getMethod() public method

Deprecation: Use getRequest()
public getMethod ( ) : string
return string
    public function getMethod()
    {
        trigger_error('Retrofit Deprecation: This method is deprecated, use getRequest() instead', E_USER_DEPRECATED);
        return $this->request->getMethod();
    }

Usage Example

Ejemplo n.º 1
0
 public function testGetMethod()
 {
     $this->disableDeprecationWarning();
     $event = new BeforeSendEvent(new Request('POST', 'http://mockservice.com/post', ['foo' => 'bar'], 'body'));
     $this->assertSame('POST', $event->getMethod());
     $this->enableDeprecationWarning();
 }
All Usage Examples Of Tebru\Retrofit\Event\BeforeSendEvent::getMethod