@@ 257-270 (lines=14) @@ | ||
254 | * |
|
255 | * @param array|null $includeFields |
|
256 | */ |
|
257 | public function setIncludeFields($includeFields) |
|
258 | { |
|
259 | if ($includeFields !== null) { |
|
260 | try { |
|
261 | $this->includeFields = $this->validateStringOrArray($includeFields); |
|
262 | } catch (InvalidArgumentException $e) { |
|
263 | throw new InvalidArgumentException('Invalid value for include_fields parameter.', $e->getCode(), $e); |
|
264 | } |
|
265 | } else { |
|
266 | $this->includeFields = null; |
|
267 | } |
|
268 | ||
269 | return $this; |
|
270 | } |
|
271 | ||
272 | /** |
|
273 | * Gets exclude fields. |
|
@@ 287-300 (lines=14) @@ | ||
284 | * |
|
285 | * @param array|null |
|
286 | */ |
|
287 | public function setExcludeFields($excludeFields) |
|
288 | { |
|
289 | if ($excludeFields !== null) { |
|
290 | try { |
|
291 | $this->excludeFields = $this->validateStringOrArray($excludeFields); |
|
292 | } catch (InvalidArgumentException $e) { |
|
293 | throw new InvalidArgumentException('Invalid value for exclude_fields parameter.', $e->getCode(), $e); |
|
294 | } |
|
295 | } else { |
|
296 | $this->excludeFields = null; |
|
297 | } |
|
298 | ||
299 | return $this; |
|
300 | } |
|
301 | ||
302 | /** |
|
303 | * Validate date parameter input and converts to DateTime. |