Fix bug in style changes for the Use cases on the live site.
[yaffs-website] / vendor / symfony / browser-kit / Request.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\BrowserKit;
13
14 /**
15  * Request object.
16  *
17  * @author Fabien Potencier <fabien@symfony.com>
18  */
19 class Request
20 {
21     protected $uri;
22     protected $method;
23     protected $parameters;
24     protected $files;
25     protected $cookies;
26     protected $server;
27     protected $content;
28
29     /**
30      * Constructor.
31      *
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
39      */
40     public function __construct($uri, $method, array $parameters = array(), array $files = array(), array $cookies = array(), array $server = array(), $content = null)
41     {
42         $this->uri = $uri;
43         $this->method = $method;
44         $this->parameters = $parameters;
45         $this->files = $files;
46         $this->cookies = $cookies;
47         $this->server = $server;
48         $this->content = $content;
49     }
50
51     /**
52      * Gets the request URI.
53      *
54      * @return string The request URI
55      */
56     public function getUri()
57     {
58         return $this->uri;
59     }
60
61     /**
62      * Gets the request HTTP method.
63      *
64      * @return string The request HTTP method
65      */
66     public function getMethod()
67     {
68         return $this->method;
69     }
70
71     /**
72      * Gets the request parameters.
73      *
74      * @return array The request parameters
75      */
76     public function getParameters()
77     {
78         return $this->parameters;
79     }
80
81     /**
82      * Gets the request server files.
83      *
84      * @return array The request files
85      */
86     public function getFiles()
87     {
88         return $this->files;
89     }
90
91     /**
92      * Gets the request cookies.
93      *
94      * @return array The request cookies
95      */
96     public function getCookies()
97     {
98         return $this->cookies;
99     }
100
101     /**
102      * Gets the request server parameters.
103      *
104      * @return array The request server parameters
105      */
106     public function getServer()
107     {
108         return $this->server;
109     }
110
111     /**
112      * Gets the request raw body data.
113      *
114      * @return string The request raw body data
115      */
116     public function getContent()
117     {
118         return $this->content;
119     }
120 }