values = array_unique(array_filter($values)); if (empty($this->values)) { throw new InvalidArgumentException('Strings filter can’t be empty'); } } /** * @return string[] */ public function get(): array { return $this->values; } }