assignee; } public function getCenter(): ?\Chill\MainBundle\Entity\Center { if ($this->getPerson() instanceof Person) { return $this->getPerson()->getCenter(); } return $this->getCourse()->getCenter(); return null; } public function getCircle(): ?Scope { return $this->circle; } public function getContext() { return $this->getPerson() ?? $this->getCourse(); } public function getCourse(): ?AccompanyingPeriod { return $this->course; } /** * Get currentStates. * * The states are returned as required by marking store format. * * @return array */ public function getCurrentStates() { return array_fill_keys($this->currentStates, 1); } /** * Get description. * * @return string */ public function getDescription() { return $this->description; } public function getPerson(): ?Person { return $this->person; } public function getScope(): ?Scope { return $this->getCircle(); } /** * Get title. * * @return string */ public function getTitle() { return $this->title; } /** * Get type. * * @return string */ public function getType() { return $this->type; } public function isClosed(): bool { return $this->closed; } public function setAssignee(?User $assignee = null) { $this->assignee = $assignee; return $this; } public function setCircle(Scope $circle) { $this->circle = $circle; return $this; } public function setClosed(bool $closed) { $this->closed = $closed; } public function setCourse(AccompanyingPeriod $course) { $this->course = $course; return $this; } /** * Set currentStates. * * The current states are sorted in a single array, non associative. * * @param $currentStates * * @return AbstractTask */ public function setCurrentStates($currentStates) { $this->currentStates = array_keys($currentStates); return $this; } /** * Set description. * * @param string $description * * @return AbstractTask */ public function setDescription($description) { $this->description = (string) $description; return $this; } public function setPerson(Person $person) { $this->person = $person; return $this; } /** * Set title. * * @param string $title * * @return AbstractTask */ public function setTitle($title) { $this->title = (string) $title; return $this; } /** * Set type. * * @param string $type * * @return AbstractTask */ public function setType($type) { $this->type = (string) $type; return $this; } }