1 | <?php |
||
26 | class TensideJsonConfig extends SourceJson |
||
27 | { |
||
28 | /** |
||
29 | * Retrieve the secret. |
||
30 | * |
||
31 | * @return string|null |
||
32 | */ |
||
33 | public function getSecret() |
||
37 | |||
38 | /** |
||
39 | * Set the secret. |
||
40 | * |
||
41 | * @param string $secret The new secret. |
||
42 | * |
||
43 | * @return TensideJsonConfig |
||
44 | */ |
||
45 | public function setSecret($secret) |
||
51 | |||
52 | /** |
||
53 | * Retrieve the domain. |
||
54 | * |
||
55 | * @return string|null |
||
56 | */ |
||
57 | public function getLocalDomain() |
||
61 | |||
62 | /** |
||
63 | * Set the domain. |
||
64 | * |
||
65 | * @param string $domain The new domain. |
||
66 | * |
||
67 | * @return TensideJsonConfig |
||
68 | */ |
||
69 | public function setLocalDomain($domain) |
||
75 | |||
76 | /** |
||
77 | * Get the interpreter to use. |
||
78 | * |
||
79 | * @return string |
||
80 | */ |
||
81 | public function getPhpCliBinary() |
||
86 | |||
87 | /** |
||
88 | * Set the interpreter to use. |
||
89 | * |
||
90 | * @param string $binary The new interpreter to use. |
||
91 | * |
||
92 | * @return TensideJsonConfig |
||
93 | */ |
||
94 | public function setPhpCliBinary($binary) |
||
100 | |||
101 | /** |
||
102 | * Retrieve the arguments to pass to the php process |
||
103 | * |
||
104 | * @return array|null |
||
105 | */ |
||
106 | public function getPhpCliArguments() |
||
110 | |||
111 | /** |
||
112 | * Set the arguments to use. |
||
113 | * |
||
114 | * @param array $arguments The new arguments to use. |
||
115 | * |
||
116 | * @return TensideJsonConfig |
||
117 | */ |
||
118 | public function setPhpCliArguments($arguments) |
||
124 | |||
125 | /** |
||
126 | * Add a command line argument. |
||
127 | * |
||
128 | * @param string $argument The argument to add. |
||
129 | * |
||
130 | * @return TensideJsonConfig |
||
131 | */ |
||
132 | public function addCommandLineArgument($argument) |
||
139 | |||
140 | /** |
||
141 | * Retrieve the additional environment variables. |
||
142 | * |
||
143 | * @return array|null |
||
144 | */ |
||
145 | public function getPhpCliEnvironment() |
||
149 | |||
150 | /** |
||
151 | * Set the additional environment variables. |
||
152 | * |
||
153 | * @param array $variables The new arguments to use. |
||
154 | * |
||
155 | * @return TensideJsonConfig |
||
156 | */ |
||
157 | public function setPhpCliEnvironment($variables) |
||
163 | |||
164 | /** |
||
165 | * Check if forking is available. |
||
166 | * |
||
167 | * @return string|null |
||
168 | */ |
||
169 | public function isForkingAvailable() |
||
173 | |||
174 | /** |
||
175 | * Set the additional environment variables. |
||
176 | * |
||
177 | * @param bool $available The new arguments to use. |
||
178 | * |
||
179 | * @return TensideJsonConfig |
||
180 | */ |
||
181 | public function setForkingAvailable($available) |
||
187 | |||
188 | /** |
||
189 | * Obtain a value from if it is set or return the default value otherwise. |
||
190 | * |
||
191 | * @param string $key The key to obtain. |
||
192 | * |
||
193 | * @param mixed $default The default value to return if not set. |
||
194 | * |
||
195 | * @return mixed |
||
196 | */ |
||
197 | private function getIfNotNull($key, $default = null) |
||
201 | } |
||
202 |