mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-08 01:50:57 +00:00
23 lines
432 B
PHP
23 lines
432 B
PHP
<?php
|
|
|
|
namespace BookStack\Activity\Tools;
|
|
|
|
use BookStack\Activity\Models\Comment;
|
|
|
|
class CommentTreeNode
|
|
{
|
|
public Comment $comment;
|
|
public int $depth;
|
|
|
|
/**
|
|
* @var CommentTreeNode[]
|
|
*/
|
|
public array $children;
|
|
|
|
public function __construct(Comment $comment, int $depth, array $children)
|
|
{
|
|
$this->comment = $comment;
|
|
$this->depth = $depth;
|
|
$this->children = $children;
|
|
}
|
|
}
|