19 declare(strict_types=1);
37 self::TYPE_LM =>
'obj_lm',
38 self::TYPE_LM_CHAPTER =>
'obj_st',
39 self::TYPE_LM_PAGE =>
'obj_pg',
40 self::TYPE_GLOSARY_TERM =>
'glossary_term',
41 self::TYPE_FILE =>
'fileDownload' 53 int $subquestion_index,
64 abstract public function getType(): string;
71 public function withId(
int $id): static
106 $clone = clone $this;
118 return $this->
getType() === self::TYPE_FILE;
127 self::TYPE_LM_CHAPTER,
129 self::TYPE_GLOSARY_TERM,
withImportId(string $import_id)
withSubquestionIndex(int $subquestion_index)
withQuestionId(int $question_id)
DateTimeImmutable $last_update
__construct(int $id, int $question_id, int $subquestion_index, string $import_id, \DateTimeImmutable $last_update)