accompanyingPeriodWorkEvaluation; } /** * @param AccompanyingPeriodWorkEvaluation|null $accompanyingPeriodWorkEvaluation * @return AccompanyingPeriodWorkEvaluationDocument */ 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; } /** * @return StoredObject|null */ public function getStoredObject(): ?StoredObject { return $this->storedObject; } /** * @param StoredObject|null $storedObject * @return AccompanyingPeriodWorkEvaluationDocument */ public function setStoredObject(?StoredObject $storedObject): AccompanyingPeriodWorkEvaluationDocument { $this->storedObject = $storedObject; return $this; } public function setCreatedBy(User $user): \Chill\MainBundle\Doctrine\Model\TrackCreationInterface { $this->createdBy = $user; return $this; } public function setCreatedAt(\DateTimeInterface $datetime): \Chill\MainBundle\Doctrine\Model\TrackCreationInterface { $this->createdAt = $datetime; return $this; } public function setUpdatedBy(User $user): \Chill\MainBundle\Doctrine\Model\TrackUpdateInterface { $this->updatedBy = $user; return $this; } public function setUpdatedAt(\DateTimeInterface $datetime): \Chill\MainBundle\Doctrine\Model\TrackUpdateInterface { $this->updatedAt = $datetime; return $this; } /** * @return int|null */ public function getId(): ?int { return $this->id; } /** * @return User|null */ public function getCreatedBy(): ?User { return $this->createdBy; } /** * @return \DateTimeImmutable|null */ public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } /** * @return User|null */ public function getUpdatedBy(): ?User { return $this->updatedBy; } /** * @return DateTimeImmutable|null */ public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } /** * @return DocGeneratorTemplate|null */ public function getTemplate(): ?DocGeneratorTemplate { return $this->template; } /** * @param DocGeneratorTemplate|null $template * @return AccompanyingPeriodWorkEvaluationDocument */ public function setTemplate(?DocGeneratorTemplate $template): AccompanyingPeriodWorkEvaluationDocument { $this->template = $template; return $this; } }