name = $name; $this->searchByCategory = $searchByCategory; $this->searchByCode = $searchByCode; } public function getName(): string { return $this->name; } public function supportsCategory(): bool { return $this->searchByCategory; } public function supportsCode(): bool { return $this->searchByCode; } }