setStartDate(new DateTimeImmutable('today')); } public function getCenters(): array { if (null !== $this->getPerson()) { return [$this->getPerson()->getCenter()]; } return $this->getHousehold()->getCurrentPersons()->map(static fn (Person $p) => $p->getCenter())->toArray(); } public function getCharge(): ?ChargeKind { return $this->charge; } public function getHelp() { return $this->help; } /** * Get id. * * @return int */ public function getId() { return $this->id; } public function isCharge(): bool { return true; } public function isResource(): bool { return false; } public function setCharge(?ChargeKind $charge): self { $this->charge = $charge; return $this; } public function setHelp($help) { $this->help = $help; return $this; } }