@@ 204-211 (lines=8) @@ | ||
201 | * |
|
202 | * @return object $this |
|
203 | */ |
|
204 | protected function withOriginal() |
|
205 | { |
|
206 | $this->isOriginal = true; |
|
207 | $this->isCollection = false; |
|
208 | $this->isLazyCollection = false; |
|
209 | ||
210 | return $this; |
|
211 | } |
|
212 | ||
213 | /** |
|
214 | * Set collection. |
|
@@ 218-225 (lines=8) @@ | ||
215 | * |
|
216 | * @return object $this |
|
217 | */ |
|
218 | protected function withCollection() |
|
219 | { |
|
220 | $this->isOriginal = false; |
|
221 | $this->isCollection = true; |
|
222 | $this->isLazyCollection = false; |
|
223 | ||
224 | return $this; |
|
225 | } |
|
226 | ||
227 | /** |
|
228 | * Set lazy collection. |
|
@@ 232-239 (lines=8) @@ | ||
229 | * |
|
230 | * @return object $this |
|
231 | */ |
|
232 | protected function withLazyCollection() |
|
233 | { |
|
234 | $this->isOriginal = false; |
|
235 | $this->isCollection = false; |
|
236 | $this->isLazyCollection = true; |
|
237 | ||
238 | return $this; |
|
239 | } |
|
240 | ||
241 | /** |
|
242 | * Set options for woocommerce request. |