Neos\Flow\Http\Response::getParentResponse PHP Method

getParentResponse() public method

Return the parent response or NULL if none exists.
public getParentResponse ( ) : Response
return Response the parent response, or NULL if none
    public function getParentResponse()
    {
        return $this->parentResponse;
    }

Usage Example

 /**
  * @test
  */
 public function getParentResponseReturnsResponseSetInConstructor()
 {
     $parentResponse = new Response();
     $response = new Response($parentResponse);
     $this->assertSame($parentResponse, $response->getParentResponse());
 }