Total Complexity | 8 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
13 | #[Package('core')] |
||
14 | class ElasticsearchCustomFieldsMappingEvent implements ShopwareEvent |
||
15 | { |
||
16 | /** |
||
17 | * @param array<string, string> $mapping |
||
18 | */ |
||
19 | public function __construct( |
||
24 | } |
||
25 | |||
26 | public function getContext(): Context |
||
27 | { |
||
28 | return $this->context; |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param CustomFieldTypes::* $type |
||
|
|||
33 | */ |
||
34 | public function setMapping(string $field, string $type): void |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @return CustomFieldTypes::*|null |
||
41 | * @return string|null |
||
42 | */ |
||
43 | public function getMapping(string $field) |
||
44 | { |
||
45 | return $this->mapping[$field] ?? null; |
||
46 | } |
||
47 | |||
48 | public function removeMapping(string $field): void |
||
52 | } |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * @return array<string, string> |
||
57 | */ |
||
58 | public function getMappings(): array |
||
61 | } |
||
62 | |||
63 | public function getEntity(): string |
||
66 | } |
||
67 | } |
||
68 |