* @throws NotFoundException
*/
public function getBySlug(string $bookSlug, string $chapterSlug): Chapter
* @throws NotFoundException
*/
public function getBySlug(string $bookSlug, string $chapterSlug): Chapter
$chapter->priority = (new BookContents($parentBook))->getLastPriority() + 1;
$this->baseRepo->create($chapter, $input);
Activity::addForEntity($chapter, ActivityType::CHAPTER_CREATE);
$chapter->priority = (new BookContents($parentBook))->getLastPriority() + 1;
$this->baseRepo->create($chapter, $input);
Activity::addForEntity($chapter, ActivityType::CHAPTER_CREATE);
{
$this->baseRepo->update($chapter, $input);
Activity::addForEntity($chapter, ActivityType::CHAPTER_UPDATE);
{
$this->baseRepo->update($chapter, $input);
Activity::addForEntity($chapter, ActivityType::CHAPTER_UPDATE);
/**
* Move the given chapter into a new parent book.
* The $parentIdentifier must be a string of the following format:
/**
* Move the given chapter into a new parent book.
* The $parentIdentifier must be a string of the following format:
* @throws MoveOperationException
*/
public function move(Chapter $chapter, string $parentIdentifier): Book
* @throws MoveOperationException
*/
public function move(Chapter $chapter, string $parentIdentifier): Book