4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\BrowserKit;
15 * @author Fabien Potencier <fabien@symfony.com>
21 protected $parameters;
28 * @param string $uri The request URI
29 * @param string $method The HTTP method request
30 * @param array $parameters The request parameters
31 * @param array $files An array of uploaded files
32 * @param array $cookies An array of cookies
33 * @param array $server An array of server parameters
34 * @param string $content The raw body data
36 public function __construct($uri, $method, array $parameters = array(), array $files = array(), array $cookies = array(), array $server = array(), $content = null)
39 $this->method = $method;
40 $this->parameters = $parameters;
41 $this->files = $files;
42 $this->cookies = $cookies;
43 $this->server = $server;
44 $this->content = $content;
48 * Gets the request URI.
50 * @return string The request URI
52 public function getUri()
58 * Gets the request HTTP method.
60 * @return string The request HTTP method
62 public function getMethod()
68 * Gets the request parameters.
70 * @return array The request parameters
72 public function getParameters()
74 return $this->parameters;
78 * Gets the request server files.
80 * @return array The request files
82 public function getFiles()
88 * Gets the request cookies.
90 * @return array The request cookies
92 public function getCookies()
94 return $this->cookies;
98 * Gets the request server parameters.
100 * @return array The request server parameters
102 public function getServer()
104 return $this->server;
108 * Gets the request raw body data.
110 * @return string The request raw body data
112 public function getContent()
114 return $this->content;