]> BookStack Code Mirror - bookstack/blob - app/Entities/Tools/BookSortMapItem.php
6a2abc42298f018ba5909fb4478945348cc9fe56
[bookstack] / app / Entities / Tools / BookSortMapItem.php
1 <?php
2
3 namespace BookStack\Entities\Tools;
4
5 use BookStack\Entities\Models\BookChild;
6
7 class BookSortMapItem
8 {
9
10     /**
11      * @var int
12      */
13     public $id;
14
15     /**
16      * @var int
17      */
18     public $sort;
19
20     /**
21      * @var ?int
22      */
23     public $parentChapterId;
24
25     /**
26      * @var string
27      */
28     public $type;
29
30     /**
31      * @var int
32      */
33     public $parentBookId;
34
35     /**
36      * @var ?BookChild
37      */
38     public $model = null;
39
40
41     public function __construct(int $id, int $sort, ?int $parentChapterId, string $type, int $parentBookId)
42     {
43         $this->id = $id;
44         $this->sort = $sort;
45         $this->parentChapterId = $parentChapterId;
46         $this->type = $type;
47         $this->parentBookId = $parentBookId;
48     }
49
50
51 }