Bluz\Proxy\Request::isPut PHP Méthode

isPut() public static méthode

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

Usage Example

Exemple #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());
 }