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;
17 * @author Fabien Potencier <fabien@symfony.com>
23 protected $parameters;
32 * @param string $uri The request URI
33 * @param string $method The HTTP method request
34 * @param array $parameters The request parameters
35 * @param array $files An array of uploaded files
36 * @param array $cookies An array of cookies
37 * @param array $server An array of server parameters
38 * @param string $content The raw body data
40 public function __construct($uri, $method, array $parameters = array(), array $files = array(), array $cookies = array(), array $server = array(), $content = null)
43 $this->method = $method;
44 $this->parameters = $parameters;
45 $this->files = $files;
46 $this->cookies = $cookies;
47 $this->server = $server;
48 $this->content = $content;
52 * Gets the request URI.
54 * @return string The request URI
56 public function getUri()
62 * Gets the request HTTP method.
64 * @return string The request HTTP method
66 public function getMethod()
72 * Gets the request parameters.
74 * @return array The request parameters
76 public function getParameters()
78 return $this->parameters;
82 * Gets the request server files.
84 * @return array The request files
86 public function getFiles()
92 * Gets the request cookies.
94 * @return array The request cookies
96 public function getCookies()
98 return $this->cookies;
102 * Gets the request server parameters.
104 * @return array The request server parameters
106 public function getServer()
108 return $this->server;
112 * Gets the request raw body data.
114 * @return string The request raw body data
116 public function getContent()
118 return $this->content;