mirror of
				https://github.com/BookStackApp/BookStack.git
				synced 2025-11-03 02:13:16 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			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;
 | 
						|
    }
 | 
						|
}
 |