Eccube\Event\EventArgs::getRequest PHP Method

getRequest() public method

public getRequest ( ) : Request
return Symfony\Component\HttpFoundation\Request
    public function getRequest()
    {
        return $this->request;
    }

Usage Example

Exemplo n.º 1
0
 public function testRequest()
 {
     $event = new EventArgs(array());
     $this->assertNull($event->getRequest());
     $request = new Request();
     $event->setRequest($request);
     $this->assertNotNull($event->getRequest());
 }