ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
Ignore.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 class Ignore
24 {
25  private const IS_NOT_NULL = 'IS NOT NULL';
26  private const NOT_EQUALS = '!=';
27 
31  private array $values_to_ignore;
32 
33  public function __construct(?string ...$values_to_ignore)
34  {
35  $this->values_to_ignore = array_map(static function (?string $value_to_ignore): string {
36  return null === $value_to_ignore ? self::IS_NOT_NULL : self::NOT_EQUALS . ' ' . $value_to_ignore;
38  }
39 
43  public function values(): array
44  {
46  }
47 }
__construct(?string ... $values_to_ignore)
Definition: Ignore.php:33