1 | <?php |
||
12 | class Vhost implements VhostInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var string Development environment |
||
16 | */ |
||
17 | const ENV_DEV = 'dev'; |
||
18 | |||
19 | /** |
||
20 | * @var string Production environment |
||
21 | */ |
||
22 | const ENV_PROD = 'prod'; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $filename; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $serverName; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $documentRoot; |
||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | protected $errorLogFilename; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | protected $accessLogFilename; |
||
48 | |||
49 | /** |
||
50 | * @var string |
||
51 | */ |
||
52 | protected $env; |
||
53 | |||
54 | /** |
||
55 | * @param string $filename |
||
56 | */ |
||
57 | 2 | public function __construct($filename) |
|
63 | |||
64 | /** |
||
65 | * @return string |
||
66 | */ |
||
67 | 2 | public function getFilename() |
|
71 | |||
72 | /** |
||
73 | * @param string $filename |
||
74 | * |
||
75 | * @return Vhost |
||
76 | */ |
||
77 | public function setFilename($filename) |
||
83 | |||
84 | /** |
||
85 | * @return string |
||
86 | */ |
||
87 | public function getServerName() |
||
91 | |||
92 | /** |
||
93 | * @param string $serverName |
||
94 | * |
||
95 | * @return Vhost |
||
96 | */ |
||
97 | public function setServerName($serverName) |
||
103 | |||
104 | /** |
||
105 | * @return string |
||
106 | */ |
||
107 | public function getDocumentRoot() |
||
111 | |||
112 | /** |
||
113 | * @param string $documentRoot |
||
114 | * |
||
115 | * @return Vhost |
||
116 | */ |
||
117 | public function setDocumentRoot($documentRoot) |
||
123 | |||
124 | /** |
||
125 | * @return string |
||
126 | */ |
||
127 | public function getErrorLogFilename() |
||
131 | |||
132 | /** |
||
133 | * @return string |
||
134 | */ |
||
135 | public function getAccessLogFilename() |
||
139 | |||
140 | /** |
||
141 | * @return string |
||
142 | */ |
||
143 | public function getEnv() |
||
147 | |||
148 | /** |
||
149 | * @param string $env |
||
150 | * |
||
151 | * @return Vhost |
||
152 | */ |
||
153 | public function setEnv($env) |
||
163 | } |
||
164 |