id; } public function setId(?Uuid $id): static { $this->id = $id; return $this; } public static function idFromString(string $id): Uuid { return Uuid::fromString($id); } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): static { $this->title = $title; return $this; } public function getDate(): ?\DateTimeInterface { return $this->date; } public function setDate(\DateTimeInterface $date): static { $this->date = $date; return $this; } public function getPassage(): ?string { return $this->passage; } public function setPassage(string $passage): static { $this->passage = $passage; return $this; } public function getRefs(): ?array { return $this->refs; } public function setRefs(?array $refs): static { $this->refs = $refs; return $this; } public function addRef(Reference $ref): static { $this->refs[] = $ref; return $this; } public function getText(): ?string { return $this->text; } public function setText(?string $text): static { $this->text = $text; return $this; } public function getSpeaker(): ?Speaker { return $this->speaker; } public function setSpeaker(?Speaker $speaker): static { $this->speaker = $speaker; return $this; } public function getSeries(): ?Series { return $this->series; } public function setSeries(?Series $series): static { $this->series = $series; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): static { $this->user = $user; return $this; } public function toLink(): string { return "id}')\">". $this->title. " ". "id}', this)\">". "". "". ( $this->recording ? "
". "". "". "" : null ); } public function toTableRow(): string { return "". "{$this->toLink()}". "{$this->speaker->getName()}". "{$this->passage}". "{$this->date->format('M j, Y')}". ""; } public function jsonSerialize(): array { return [ 'id' => $this->getId(), 'link' => $this->toLink(), 'title' => $this->getTitle(), 'date' => $this->getDate(), 'passage' => $this->getPassage(), 'refs' => $this->getRefs(), 'text' => $this->getText(), 'speaker' => $this->getSpeaker(), 'series' => $this->getSeries(), 'user' => $this->getUser(), ]; } public function getRecording(): ?string { return $this->recording; } public function setRecording(?string $recording): static { $this->recording = $recording; return $this; } }