value => $this->id ]); } public static function all(array $params = []): array { return array_map(fn(array $item): Search => new Search($item[SearchTable::ID->value]), parent::list(Endpoints::SEARCH, $params)); } public function title(): ?string { return $this->get(SearchTable::TITLE->value); } public function summary(): ?string { return $this->get(SearchTable::SUMMARY->value); } public function category(): ?SearchCategoryEnum { return SearchCategoryEnum::tryFromName($this->get(SearchTable::CATEGORY->value)); } public function href(): ?string { return $this->get(SearchTable::HREF->value); } }