@@ 141-155 (lines=15) @@ | ||
138 | * @return Configuration |
|
139 | * @throws Exception |
|
140 | */ |
|
141 | public function setOptions(array $options) |
|
142 | { |
|
143 | self::guardOptionValidity($options); |
|
144 | ||
145 | foreach ($options as $option => $value) { |
|
146 | if ($option === self::OPT_IP_POOL) { |
|
147 | $this->options[$option] = (string) $value; |
|
148 | continue; |
|
149 | } |
|
150 | ||
151 | $this->options[$option] = (bool) $value; |
|
152 | } |
|
153 | ||
154 | return $this; |
|
155 | } |
|
156 | } |
|
157 |
@@ 212-226 (lines=15) @@ | ||
209 | * |
|
210 | * @return Message |
|
211 | */ |
|
212 | public function setOptions(array $options) |
|
213 | { |
|
214 | Configuration::guardOptionValidity($options); |
|
215 | ||
216 | foreach ($options as $option => $value) { |
|
217 | if ($option === Configuration::OPT_IP_POOL) { |
|
218 | $this->options[$option] = (string) $value; |
|
219 | continue; |
|
220 | } |
|
221 | ||
222 | $this->options[$option] = (bool) $value; |
|
223 | } |
|
224 | ||
225 | return $this; |
|
226 | } |
|
227 | ||
228 | /** |
|
229 | * @param array $tags |