1 | <?php |
||
16 | class Handler implements HandlerInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var \eZ\Publish\Core\Persistence\Legacy\UserPreference\Gateway |
||
20 | */ |
||
21 | protected $gateway; |
||
22 | |||
23 | /** |
||
24 | * @var \eZ\Publish\Core\Persistence\Legacy\UserPreference\Mapper |
||
25 | */ |
||
26 | protected $mapper; |
||
27 | |||
28 | /** |
||
29 | * @param \eZ\Publish\Core\Persistence\Legacy\UserPreference\Gateway $gateway |
||
30 | * @param \eZ\Publish\Core\Persistence\Legacy\UserPreference\Mapper $mapper |
||
31 | */ |
||
32 | public function __construct(Gateway $gateway, Mapper $mapper) |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | * |
||
41 | * @throws \eZ\Publish\Core\Base\Exceptions\NotFoundException |
||
42 | */ |
||
43 | public function setUserPreference(UserPreferenceSetStruct $setStruct): UserPreference |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | * |
||
53 | * @throws \eZ\Publish\Core\Base\Exceptions\NotFoundException |
||
54 | */ |
||
55 | public function getUserPreferenceByUserIdAndName(int $userId, string $name): UserPreference |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | public function countUserPreferences(int $userId): int |
||
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | public function loadUserPreferences(int $userId, int $offset, int $limit): array |
||
85 | } |
||
86 |