1 | <?php |
||
22 | final class HashMap |
||
23 | { |
||
24 | const NAME = 'hash_map'; |
||
25 | |||
26 | /** |
||
27 | * Name of the type field. Defaults to normalized property name. |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | public $name; |
||
32 | |||
33 | /** |
||
34 | * Property type for nested structure values. |
||
35 | * |
||
36 | * @var mixed |
||
37 | * @Enum({ |
||
38 | * "text", "keyword", |
||
39 | * "long", "integer", "short", "byte", "double", "float", |
||
40 | * "date", |
||
41 | * "boolean", |
||
42 | * "binary", |
||
43 | * "geo_point", "geo_shape", |
||
44 | * "ip", "completion", "token_count", "murmur3", "attachments", "percolator" |
||
45 | * }) |
||
46 | */ |
||
47 | public $type; |
||
48 | |||
49 | /** |
||
50 | * In this field you can define options. |
||
51 | * |
||
52 | * @var array |
||
53 | */ |
||
54 | public $options = []; |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function dump(array $exclude = []) |
||
71 | } |
||
72 |