accompanyingPeriodWorkEvaluation; } /** * @return \DateTimeImmutable|null */ public function getCreatedAt(): ?DateTimeInterface { return $this->createdAt; } public function getCreatedBy(): ?User { return $this->createdBy; } public function getId(): ?int { return $this->id; } /** * @return mixed */ public function getKey() { return $this->key; } public function getStoredObject(): ?StoredObject { return $this->storedObject; } public function getTemplate(): ?DocGeneratorTemplate { return $this->template; } public function getTitle(): ?string { return $this->title; } /** * @return DateTimeImmutable|null */ public function getUpdatedAt(): ?DateTimeInterface { return $this->updatedAt; } public function getUpdatedBy(): ?User { return $this->updatedBy; } public function setAccompanyingPeriodWorkEvaluation(?AccompanyingPeriodWorkEvaluation $accompanyingPeriodWorkEvaluation): AccompanyingPeriodWorkEvaluationDocument { // if an evaluation is already associated, we cannot change the association (removing the association, // by setting a null value, is allowed. if ( $this->accompanyingPeriodWorkEvaluation instanceof AccompanyingPeriodWorkEvaluation && $accompanyingPeriodWorkEvaluation instanceof AccompanyingPeriodWorkEvaluation ) { if ($this->accompanyingPeriodWorkEvaluation !== $accompanyingPeriodWorkEvaluation) { throw new RuntimeException('It is not allowed to change the evaluation for a document'); } } $this->accompanyingPeriodWorkEvaluation = $accompanyingPeriodWorkEvaluation; return $this; } public function setCreatedAt(DateTimeInterface $datetime): TrackCreationInterface { $this->createdAt = $datetime; return $this; } public function setCreatedBy(User $user): TrackCreationInterface { $this->createdBy = $user; return $this; } /** * @param mixed $key * * @return AccompanyingPeriodWorkEvaluationDocument */ public function setKey($key) { $this->key = $key; return $this; } public function setStoredObject(?StoredObject $storedObject): AccompanyingPeriodWorkEvaluationDocument { $this->storedObject = $storedObject; return $this; } public function setTemplate(?DocGeneratorTemplate $template): AccompanyingPeriodWorkEvaluationDocument { $this->template = $template; return $this; } public function setTitle(?string $title): AccompanyingPeriodWorkEvaluationDocument { $this->title = $title; return $this; } public function setUpdatedAt(DateTimeInterface $datetime): TrackUpdateInterface { $this->updatedAt = $datetime; return $this; } public function setUpdatedBy(User $user): TrackUpdateInterface { $this->updatedBy = $user; return $this; } }