identifier = trim($identifier); $this->identifierType = strtoupper(trim($identifierType)); $this->productType = strtolower(trim($productType)); $this->query = trim($query); $this->metadata = is_array($metadata) ? $metadata : []; } public function getIdentifier(): string { return $this->identifier; } public function getIdentifierType(): string { return $this->identifierType; } public function getProductType(): string { return $this->productType; } public function getQuery(): string { return $this->query; } public function getMetadata(): array { return $this->metadata; } }