field = $tmp[0]; $term = $tmp[1] !== '""' ? $tmp[1] : ''; } } if (\strlen($term) > 1 && $term[0] === '!') { $term = substr($term, 1); $this->excluded = true; } $this->term = $term; } public function getTerm(): string { return $this->term; } public function getField(): ?string { return $this->field; } public function isExcluded(): bool { return $this->excluded; } }