root->getUserFolder($this->getUserId())->getFirstNodeById($this->getFileId()); if (!$node) { throw new NodeNotFoundException(); } return $node; } protected function getter(string $name): mixed { return $this->reminder->getter($name); } public function __call(string $methodName, array $args) { return $this->reminder->__call($methodName, $args); } public function jsonSerialize(): array { return [ 'userId' => $this->getUserId(), 'fileId' => $this->getFileId(), 'path' => $this->getNode()->getPath(), 'dueDate' => $this->getDueDate()->format(DateTimeInterface::ATOM), // ISO 8601 'updatedAt' => $this->getUpdatedAt()->format(DateTimeInterface::ATOM), // ISO 8601 'createdAt' => $this->getCreatedAt()->format(DateTimeInterface::ATOM), // ISO 8601 'notified' => $this->getNotified(), ]; } }