1 | <?php |
||
21 | class RedirectException extends HttpException |
||
22 | { |
||
23 | /** |
||
24 | * Redirect HTTP code |
||
25 | * |
||
26 | * - 301 Moved Permanently |
||
27 | * - 302 Moved Temporarily / Found |
||
28 | * - 307 Temporary Redirect |
||
29 | * |
||
30 | * @var integer |
||
31 | */ |
||
32 | protected $code = StatusCode::FOUND; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $url; |
||
38 | |||
39 | /** |
||
40 | * Set Url to Redirect |
||
41 | * |
||
42 | * @param string $url |
||
43 | */ |
||
44 | 5 | public function setUrl($url) |
|
48 | |||
49 | /** |
||
50 | * getUrl |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | 2 | public function getUrl() |
|
58 | } |
||
59 |