/** * @param int $retryLimit * @param ChapterNumber $chapterNumber * @return ChapterStatus */ public static function retryLimitReached($retryLimit, ChapterNumber $chapterNumber) { return new self(sprintf('Retrying Chapter %s of Story %s is not possible. Retry limit of %d reached', $chapterNumber->number(), $chapterNumber->storyId()->toString(), $retryLimit)); }
/** * @param ChapterNumber $chapterNumber * @return Story */ public static function hasNoStartMessageLoggedForChapterNumber(ChapterNumber $chapterNumber) { return new self(sprintf('Story %s has no start message logged for chapter number %d', $chapterNumber->storyId()->toString(), $chapterNumber->number())); }