BoothService
in package
Application service for booth operations.
Table of Contents
Properties
Methods
- __construct() : mixed
- Bootstraps the service with repositories and user service.
- archiveBooth() : Booth
- Archive a booth.
- changeStatus() : Booth
- Change status to a specific state with permission checks.
- getBoothById() : Booth|null
- Fetch a booth by numeric ID.
- publishBooth() : Booth
- Publish a booth when the actor is allowed to do so.
- renameBooth() : Booth
- Rename a booth with permission checks.
- requireBooth() : Booth
- Resolve booth or throw when not found.
Properties
$boothRepository
private
BoothRepository
$boothRepository
$userService
private
WebviepUserService
$userService
Methods
__construct()
Bootstraps the service with repositories and user service.
public
__construct(BoothRepository $boothRepository, WebviepUserService $userService) : mixed
Parameters
- $boothRepository : BoothRepository
- $userService : WebviepUserService
archiveBooth()
Archive a booth.
public
archiveBooth(BoothId $boothId, WebviepUserId $actor) : Booth
Parameters
- $boothId : BoothId
- $actor : WebviepUserId
Return values
BoothchangeStatus()
Change status to a specific state with permission checks.
public
changeStatus(BoothId $boothId, WebviepUserId $actor, BoothStatus $newStatus) : Booth
Parameters
- $boothId : BoothId
- $actor : WebviepUserId
- $newStatus : BoothStatus
Return values
BoothgetBoothById()
Fetch a booth by numeric ID.
public
getBoothById(int $id) : Booth|null
Parameters
- $id : int
Return values
Booth|nullpublishBooth()
Publish a booth when the actor is allowed to do so.
public
publishBooth(BoothId $boothId, WebviepUserId $actor) : Booth
Parameters
- $boothId : BoothId
- $actor : WebviepUserId
Return values
BoothrenameBooth()
Rename a booth with permission checks.
public
renameBooth(BoothId $boothId, WebviepUserId $actor, string $newTitle) : Booth
Parameters
- $boothId : BoothId
- $actor : WebviepUserId
- $newTitle : string
Return values
BoothrequireBooth()
Resolve booth or throw when not found.
private
requireBooth(BoothId $boothId) : Booth
Parameters
- $boothId : BoothId