getRecord()->id; } function getOwner(): ?User { return (new Users)->get($this->getRecord()->owner); } function getDir(): ?SupportTemplateDir { return (new SupportTemplatesDirs)->get($this->getRecord()->dir); } function isPublic(): bool { return $this->getDir()->isPublic(); } function getTitle(): string { return $this->getRecord()->title; } function getText(): string { return $this->getRecord()->text; } }