1: <?php
2:
3: namespace PHPixie\Route\Translator;
4:
5: class Fragment
6: {
7: protected $path;
8: protected $host;
9: protected $serverRequest;
10:
11: public function __construct($path = null, $host = null, $serverRequest = null)
12: {
13: $this->path = $path;
14: $this->host = $host;
15: $this->serverRequest = $serverRequest;
16: }
17:
18: public function path()
19: {
20: return $this->path;
21: }
22:
23: public function host()
24: {
25: return $this->host;
26: }
27:
28: public function serverRequest()
29: {
30: return $this->serverRequest;
31: }
32:
33: public function setPath($path)
34: {
35: $this->path = $path;
36: }
37:
38: public function setHost($host)
39: {
40: $this->host = $host;
41: }
42:
43: public function setServerRequest($serverRequest)
44: {
45: $this->serverRequest = $serverRequest;
46: }
47:
48: public function copy()
49: {
50: return clone $this;
51: }
52: }