1: <?php
 2: 
 3: /**
 4:  * This file is part of the Nette Framework (https://nette.org)
 5:  *
 6:  * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
 7:  *
 8:  * For the full copyright and license information, please view
 9:  * the file license.txt that was distributed with this source code.
10:  */
11: 
12: namespace Nette\Application;
13: 
14: use Nette;
15: 
16: 
17: 
18: /**
19:  * Forwards to new request.
20:  *
21:  * @author     David Grudl
22:  */
23: class ForwardingResponse extends Nette\Object implements IPresenterResponse
24: {
25:     /** @var PresenterRequest */
26:     private $request;
27: 
28: 
29: 
30:     /**
31:      * @param  PresenterRequest  new request
32:      */
33:     public function __construct(PresenterRequest $request)
34:     {
35:         $this->request = $request;
36:     }
37: 
38: 
39: 
40:     /**
41:      * @return PresenterRequest
42:      */
43:     final public function getRequest()
44:     {
45:         return $this->request;
46:     }
47: 
48: 
49: 
50:     /**
51:      * Sends response to output.
52:      * @return void
53:      */
54:     public function send()
55:     {
56:     }
57: 
58: }
59: