1 | <?php |
||
18 | class Handler implements HandlerInterface |
||
19 | { |
||
20 | /** @var \eZ\Publish\Core\Persistence\Legacy\Bookmark\Gateway */ |
||
21 | private $gateway; |
||
22 | |||
23 | /** @var \eZ\Publish\Core\Persistence\Legacy\Bookmark\Mapper */ |
||
24 | private $mapper; |
||
25 | |||
26 | /** |
||
27 | * Handler constructor. |
||
28 | * |
||
29 | * @param \eZ\Publish\Core\Persistence\Legacy\Bookmark\Gateway $gateway |
||
30 | * @param \eZ\Publish\Core\Persistence\Legacy\Bookmark\Mapper $mapper |
||
31 | */ |
||
32 | public function __construct(Gateway $gateway, Mapper $mapper) |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function create(CreateStruct $createStruct): Bookmark |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function delete(int $bookmarkId): void |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function loadByUserIdAndLocationId(int $userId, array $locationIds): array |
||
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | public function loadUserBookmarks(int $userId, int $offset = 0, int $limit = -1): array |
||
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | public function countUserBookmarks(int $userId): int |
||
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | */ |
||
97 | public function locationSwapped(int $location1Id, int $location2Id): void |
||
101 | } |
||
102 |