1 | <?php |
||
17 | class BookmarkService implements BookmarkServiceInterface |
||
18 | { |
||
19 | /** |
||
20 | * Aggregated service. |
||
21 | * |
||
22 | * @var \eZ\Publish\API\Repository\BookmarkService |
||
23 | */ |
||
24 | protected $service; |
||
25 | |||
26 | /** |
||
27 | * SignalDispatcher. |
||
28 | * |
||
29 | * @var \eZ\Publish\Core\SignalSlot\SignalDispatcher |
||
30 | */ |
||
31 | protected $signalDispatcher; |
||
32 | |||
33 | /** |
||
34 | * BookmarkService constructor. |
||
35 | * |
||
36 | * @param \eZ\Publish\API\Repository\BookmarkService $service |
||
37 | * @param \eZ\Publish\Core\SignalSlot\SignalDispatcher $signalDispatcher |
||
38 | */ |
||
39 | public function __construct(BookmarkServiceInterface $service, SignalDispatcher $signalDispatcher) |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function createBookmark(Location $location): void |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function deleteBookmark(Location $location): void |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | public function loadBookmarks(int $offset = 0, int $limit = 25): BookmarkList |
||
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | public function isBookmarked(Location $location): bool |
||
84 | } |
||
85 |