createdAt = new \DateTimeImmutable(); $this->content = ''; $this->children = new ArrayCollection(); } public function getId() { return $this->id; } /** * @return ResourceComment */ public function setId($id) { $this->id = $id; return $this; } 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; } /** * @return ResourceComment[] */ public function getChildren(): array { return $this->children; } /** * @param ResourceComment[] $children */ public function setChildren(array $children): self { $this->children = $children; return $this; } }