1 | <?php |
||
8 | class GodUserReadRepositoryDecorator implements ReadRepositoryInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var ReadRepositoryInterface |
||
12 | */ |
||
13 | private $repository; |
||
14 | |||
15 | /** |
||
16 | * @var string[] |
||
17 | */ |
||
18 | private $godUserIds; |
||
19 | |||
20 | /** |
||
21 | * @param ReadRepositoryInterface $readRepository |
||
22 | * @param array $godUserIds |
||
23 | */ |
||
24 | public function __construct(ReadRepositoryInterface $readRepository, array $godUserIds) |
||
29 | |||
30 | /** |
||
31 | * @inheritdoc |
||
32 | */ |
||
33 | public function getByUuid(UUID $uuid) |
||
37 | |||
38 | /** |
||
39 | * @inheritdoc |
||
40 | */ |
||
41 | public function getByName(StringLiteral $name) |
||
45 | |||
46 | /** |
||
47 | * @inheritdoc |
||
48 | */ |
||
49 | public function canUseLabel(StringLiteral $userId, StringLiteral $name) |
||
58 | |||
59 | /** |
||
60 | * @inheritdoc |
||
61 | */ |
||
62 | public function search(Query $query) |
||
66 | |||
67 | /** |
||
68 | * @inheritdoc |
||
69 | */ |
||
70 | public function searchTotalLabels(Query $query) |
||
74 | } |
||
75 |