1 | <?php |
||
17 | class ExceptionConversion extends Gateway |
||
18 | { |
||
19 | /** |
||
20 | * The wrapped gateway. |
||
21 | * |
||
22 | * @var \eZ\Publish\Core\Persistence\Legacy\UserPreference\Gateway |
||
23 | */ |
||
24 | protected $innerGateway; |
||
25 | |||
26 | /** |
||
27 | * ExceptionConversion constructor. |
||
28 | * |
||
29 | * @param \eZ\Publish\Core\Persistence\Legacy\UserPreference\Gateway $innerGateway |
||
30 | */ |
||
31 | public function __construct(Gateway $innerGateway) |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function getUserPreferenceByUserIdAndName(int $userId, string $name): array |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function countUserPreferences(int $userId): int |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | public function loadUserPreferences(int $userId, int $offset = 0, int $limit = -1): array |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public function setUserPreference(UserPreferenceSetStruct $setStruct): int |
||
83 | } |
||
84 |