-<?php namespace BookStack\Entities\Tools;
+<?php
-use BookStack\Entities\Book;
-use BookStack\Entities\Bookshelf;
+namespace BookStack\Entities\Tools;
+
+use BookStack\Entities\Models\Book;
+use BookStack\Entities\Models\Bookshelf;
class ShelfContext
{
return null;
}
+ /** @var Bookshelf $shelf */
$shelf = Bookshelf::visible()->find($contextBookshelfId);
$shelfContainsBook = $shelf && $shelf->contains($book);