Bluz\Proxy\Request::isDelete PHP Method

isDelete() public static method

Is this a DELETE method request?
public static isDelete ( ) : boolean
return boolean
    public static function isDelete()
    {
        return self::getInstance()->getMethod() === 'DELETE';
    }

Usage Example

Beispiel #1
0
 /**
  * Test `Is` Methods
  */
 public function testIsMethods()
 {
     $this->assertTrue(Request::isGet());
     $this->assertFalse(Request::isPost());
     $this->assertFalse(Request::isPut());
     $this->assertFalse(Request::isDelete());
     $this->assertFalse(Request::isFlashRequest());
     $this->assertFalse(Request::isXmlHttpRequest());
 }