getRecord()->index; } function getAuthor(): ?User { return (new Users)->get($this->getRecord()->author); } function getTarget(): ?User { return (new Users)->get($this->getRecord()->target); } function getCreationDate(): DateTime { return new DateTime($this->getRecord()->created); } }