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