createdAt = new DateTime(); $this->content = ''; $this->children = new ArrayCollection(); } public function getId() { return $this->id; } public function getContent(): string { return $this->content; } public function setContent(string $content): self { $this->content = $content; return $this; } public function getResourceNode() { return $this->resourceNode; } public function setResourceNode($resourceNode): self { $this->resourceNode = $resourceNode; return $this; } public function getAuthor(): User { return $this->author; } public function setAuthor(User $author): self { $this->author = $author; return $this; } public function getParent() { return $this->parent; } public function setParent($parent): self { $this->parent = $parent; return $this; } public function getChildren() { return $this->children; } public function setChildren($children): self { $this->children = $children; return $this; } }