Bluz\Proxy\Request::isPut PHP Method

isPut() public static method

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

Usage Example

Ejemplo n.º 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());
 }