createdAt = new DateTime(); $this->content = ''; $this->children = new ArrayCollection(); } public function getId(): int { return $this->id; } public function getContent(): string { return $this->content; } public function setContent(string $content): self { $this->content = $content; return $this; } public function getResourceNode(): ResourceNode { return $this->resourceNode; } public function setResourceNode(ResourceNode $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(): ?self { return $this->parent; } public function setParent(?self $parent): self { $this->parent = $parent; return $this; } /** * @return ResourceComment[]|Collection */ public function getChildren() { return $this->children; } /** * @param ResourceComment[]|Collection $children */ public function setChildren(Collection $children): self { $this->children = $children; return $this; } }