Documentation

DeleteBook

Use case for deleting a book and all its chapters.

Tags
since
3.0.0

Table of Contents

Properties

$bookRepository  : BookRepositoryInterface

Methods

__construct()  : mixed
Constructor.
execute()  : array{success: bool, message: string}
Delete a book by its ID.

Properties

Methods

execute()

Delete a book by its ID.

public execute(int $bookId) : array{success: bool, message: string}

This will cascade delete all associated text chapters due to the foreign key constraint.

Parameters
$bookId : int

Book ID

Return values
array{success: bool, message: string}

        
On this page

Search results