children = new ArrayCollection(); } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set createdAt * * @param \DateTime $createdAt * @return Comment */ public function setCreatedAt($createdAt) { $this->createdAt = $createdAt; return $this; } /** * Get createdAt * * @return \DateTime */ public function getCreatedAt() { return $this->createdAt; } /** * Set text * * @param string $text * @return Comment */ public function setText($text) { $this->text = $text; return $this; } /** * Get text * * @return string */ public function getText() { return $this->text; } /** * Set isRec * * @param boolean $rec * @return Comment */ public function setRec($rec) { $this->rec = $rec; return $this; } /** * Get isRec * * @return boolean */ public function isRec() { return $this->rec; } /** * Get isRec * * @return boolean */ public function getRec() { return $this->rec; } /** * @return Post */ public function getPost() { return $this->post; } /** * @param Post $post * @return Comment */ public function setPost($post) { $this->post = $post; return $this; } /** * Set number * * @param int $number * @return Comment */ public function setNumber($number) { $this->number = $number; return $this; } /** * Get number * * @return int */ public function getNumber() { return $this->number; } /** * @return User */ public function getAuthor() { return $this->author; } /** * @param User $author * @return Comment */ public function setAuthor($author) { $this->author = $author; return $this; } /** * @return Comment */ public function getParent() { return $this->parent; } /** * @param Comment $parent * @return Comment */ public function setParent($parent) { $this->parent = $parent; return $this; } /** * Set deleted * * @param boolean $deleted * @return Comment */ public function setDeleted($deleted) { $this->deleted = $deleted; return $this; } /** * Get deleted * * @return boolean */ public function getDeleted() { return $this->deleted; } /** * Get deleted * * @return boolean */ public function isDeleted() { return $this->deleted; } /** * Set id * * @param integer $id * @return Comment */ public function setId($id) { $this->id = $id; return $this; } /** * Add children * * @param Comment $children * @return Comment */ public function addChild(Comment $children) { $this->children[] = $children; return $this; } /** * Remove children * * @param Comment $children */ public function removeChild(Comment $children) { $this->children->removeElement($children); } /** * Get children * * @return ArrayCollection */ public function getChildren() { return $this->children; } }