@@ 11-32 (lines=22) @@ | ||
8 | use AmaTeam\ElasticSearch\Mapping\Parameter\EnabledParameter; |
|
9 | use AmaTeam\ElasticSearch\Mapping\Parameter\PropertiesParameter; |
|
10 | ||
11 | class NestedType extends AbstractType |
|
12 | { |
|
13 | const ID = 'nested'; |
|
14 | const FRIENDLY_ID = self::ID; |
|
15 | ||
16 | public function getId(): string |
|
17 | { |
|
18 | return self::ID; |
|
19 | } |
|
20 | ||
21 | /** |
|
22 | * @inheritDoc |
|
23 | */ |
|
24 | public function getParameters(): array |
|
25 | { |
|
26 | return [ |
|
27 | EnabledParameter::getInstance(), |
|
28 | DynamicParameter::getInstance(), |
|
29 | PropertiesParameter::getInstance(), |
|
30 | ]; |
|
31 | } |
|
32 | } |
|
33 |
@@ 11-29 (lines=19) @@ | ||
8 | use AmaTeam\ElasticSearch\Mapping\Parameter\EnabledParameter; |
|
9 | use AmaTeam\ElasticSearch\Mapping\Parameter\PropertiesParameter; |
|
10 | ||
11 | class ObjectType extends AbstractType |
|
12 | { |
|
13 | const ID = 'object'; |
|
14 | const FRIENDLY_ID = self::ID; |
|
15 | ||
16 | public function getId(): string |
|
17 | { |
|
18 | return self::ID; |
|
19 | } |
|
20 | ||
21 | public function getParameters(): array |
|
22 | { |
|
23 | return [ |
|
24 | DynamicParameter::getInstance(), |
|
25 | EnabledParameter::getInstance(), |
|
26 | PropertiesParameter::getInstance() |
|
27 | ]; |
|
28 | } |
|
29 | } |
|
30 |
@@ 12-34 (lines=23) @@ | ||
9 | use AmaTeam\ElasticSearch\Mapping\Parameter\PropertiesParameter; |
|
10 | use AmaTeam\ElasticSearch\Mapping\Parameter\SourceParameter; |
|
11 | ||
12 | class RootType extends AbstractType |
|
13 | { |
|
14 | const ID = 'root'; |
|
15 | const FRIENDLY_ID = self::ID; |
|
16 | ||
17 | public function getId(): string |
|
18 | { |
|
19 | return self::ID; |
|
20 | } |
|
21 | ||
22 | /** |
|
23 | * @inheritDoc |
|
24 | */ |
|
25 | public function getParameters(): array |
|
26 | { |
|
27 | return [ |
|
28 | SourceParameter::getInstance(), |
|
29 | DynamicParameter::getInstance(), |
|
30 | EnabledParameter::getInstance(), |
|
31 | PropertiesParameter::getInstance() |
|
32 | ]; |
|
33 | } |
|
34 | } |
|
35 |