PageRenderTime 40ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/Nette/Application/Responses/ForwardingResponse.php

https://github.com/DocX/nette
PHP | 72 lines | 18 code | 19 blank | 35 comment | 0 complexity | 9853ae391832c9a0a4168dfde317ffc5 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. <?php
  2. /**
  3. * Nette Framework
  4. *
  5. * Copyright (c) 2004, 2009 David Grudl (http://davidgrudl.com)
  6. *
  7. * This source file is subject to the "Nette license" that is bundled
  8. * with this package in the file license.txt.
  9. *
  10. * For more information please see http://nettephp.com
  11. *
  12. * @copyright Copyright (c) 2004, 2009 David Grudl
  13. * @license http://nettephp.com/license Nette license
  14. * @link http://nettephp.com
  15. * @category Nette
  16. * @package Nette\Application
  17. */
  18. /*namespace Nette\Application;*/
  19. require_once dirname(__FILE__) . '/../../Object.php';
  20. require_once dirname(__FILE__) . '/../../Application/IPresenterResponse.php';
  21. /**
  22. * Forwards to new request.
  23. *
  24. * @author David Grudl
  25. * @copyright Copyright (c) 2004, 2009 David Grudl
  26. * @package Nette\Application
  27. */
  28. class ForwardingResponse extends /*Nette\*/Object implements IPresenterResponse
  29. {
  30. /** @var PresenterRequest */
  31. private $request;
  32. /**
  33. * @param PresenterRequest new request
  34. */
  35. public function __construct(PresenterRequest $request)
  36. {
  37. $this->request = $request;
  38. }
  39. /**
  40. * @return PresenterRequest
  41. */
  42. final public function getRequest()
  43. {
  44. return $this->request;
  45. }
  46. /**
  47. * Sends response to output.
  48. * @return void
  49. */
  50. public function send()
  51. {
  52. }
  53. }