ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Ignore.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23class Ignore
24{
28 private const IS_NOT_NULL = 'IS NOT NULL';
32 private const NOT_EQUALS = '!=';
33
37 private array $values_to_ignore;
38
39 public function __construct(?string ...$values_to_ignore)
40 {
41 $this->values_to_ignore = array_map(static fn(?string $value_to_ignore): string => null === $value_to_ignore ? self::IS_NOT_NULL : self::NOT_EQUALS . ' ' . $value_to_ignore, $values_to_ignore);
42 }
43
47 public function values(): array
48 {
50 }
51}
__construct(?string ... $values_to_ignore)
Definition: Ignore.php:39