BoothRepositoryWp
in package
implements
BoothRepository
Table of Contents
Interfaces
- BoothRepository
- Repository interface for Booth aggregates.
Methods
- findById() : Booth|null
- Find a booth by its identifier.
- save() : void
- Persist a Booth aggregate back to WordPress storage.
- search() : BoothSearchResult
- Search booths with query/topic filters.
- mapPost() : Booth
- Map a WordPress post to a Booth aggregate.
Methods
findById()
Find a booth by its identifier.
public
findById(BoothId $id) : Booth|null
Parameters
- $id : BoothId
-
Booth identifier.
Return values
Booth|nullsave()
Persist a Booth aggregate back to WordPress storage.
public
save(Booth $booth) : void
Parameters
- $booth : Booth
-
Booth aggregate.
search()
Search booths with query/topic filters.
public
search(BoothSearchCriteria $criteria) : BoothSearchResult
Parameters
- $criteria : BoothSearchCriteria
-
Search filters.
Return values
BoothSearchResultmapPost()
Map a WordPress post to a Booth aggregate.
private
mapPost(WP_Post $post) : Booth
Parameters
- $post : WP_Post
-
WordPress post.