mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-14 07:52:52 +08:00

Some checks failed
test-js / build (push) Has been cancelled
analyse-php / build (push) Has been cancelled
lint-php / build (push) Has been cancelled
test-migrations / build (8.2) (push) Has been cancelled
test-migrations / build (8.3) (push) Has been cancelled
test-migrations / build (8.4) (push) Has been cancelled
test-php / build (8.2) (push) Has been cancelled
test-php / build (8.3) (push) Has been cancelled
test-php / build (8.4) (push) Has been cancelled
24 lines
432 B
PHP
24 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;
|
|
}
|
|
}
|