Bluz\Proxy\Request::isGet PHP Method

isGet() public static method

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

Usage Example

Example #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());
 }
All Usage Examples Of Bluz\Proxy\Request::isGet