type = $type; $this->level = $level; $this->range = $range; } /** * @return string Thread item type */ public function getType() : string { return $this->type; } /** * @return int Thread item level */ public function getLevel() : int { return $this->level; } /** * @return ImmutableRange Thread item range */ public function getRange() : ImmutableRange { return $this->range; } /** * @return string|null Thread ID */ public function getId() : ?string { return $this->id; } /** * @return CommentItem[] Replies to this thread item */ public function getReplies() : array { return $this->replies; } /** * @param int $level Thread item level */ public function setLevel( int $level ) : void { $this->level = $level; } /** * @param ImmutableRange $range Thread item range */ public function setRange( ImmutableRange $range ) : void { $this->range = $range; } /** * @param string|null $id Thread ID */ public function setId( ?string $id ) : void { $this->id = $id; } /** * @param CommentItem $reply Reply comment */ public function addReply( CommentItem $reply ) : void { $this->replies[] = $reply; } }