]> BookStack Code Mirror - bookstack/blob - app/Activity/Tools/CommentTreeNode.php
Comments: Started archive display, created mode for tree node
[bookstack] / app / Activity / Tools / CommentTreeNode.php
1 <?php
2
3 namespace BookStack\Activity\Tools;
4
5 use BookStack\Activity\Models\Comment;
6
7 class CommentTreeNode
8 {
9     public Comment $comment;
10     public int $depth;
11
12     /**
13      * @var CommentTreeNode[]
14      */
15     public array $children;
16
17     public function __construct(Comment $comment, int $depth, array $children)
18     {
19         $this->comment = $comment;
20         $this->depth = $depth;
21         $this->children = $children;
22     }
23 }