get('name'); } public function getTerminateAt(): ?DateTime { /** @var ?DateTime */ return $this->getValueObject('terminateAt'); } public function getData(): stdClass { return $this->get('data') ?? (object) []; } public function getCreatedAt(): DateTime { /** @var ?DateTime $value */ $value = $this->getValueObject('createdAt'); if (!$value) { throw new LogicException(); } return $value; } }