1 | <?php |
||
16 | class FooType { |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | * |
||
21 | * @ORM\Id |
||
22 | * @ORM\GeneratedValue(strategy="IDENTITY") |
||
23 | * @ElasticORM\MetaField(name="_id") |
||
24 | * @ORM\Column(name="_id", type="integer") |
||
25 | */ |
||
26 | public $_id; |
||
27 | |||
28 | /** |
||
29 | * @var int |
||
30 | * |
||
31 | * @ElasticORM\Field(name="custom_numeric_field", type="integer") |
||
32 | */ |
||
33 | private $customNumericField; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | * |
||
38 | * @ElasticORM\Field(name="custom_field", type="string") |
||
39 | */ |
||
40 | private $customField; |
||
41 | |||
42 | /** |
||
43 | * @var array |
||
44 | * |
||
45 | * @ElasticORM\Field(name="custom_nested_field", type="nested") |
||
46 | */ |
||
47 | private $customNestedField = []; |
||
48 | |||
49 | /** |
||
50 | * @return int |
||
51 | */ |
||
52 | public function getCustomNumericField() { |
||
55 | |||
56 | /** |
||
57 | * @param int $customNumericField |
||
58 | * @return FooType |
||
59 | */ |
||
60 | public function setCustomNumericField($customNumericField) { |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | public function getCustomField() { |
||
71 | |||
72 | /** |
||
73 | * @param string $customField |
||
74 | * @return FooType |
||
75 | */ |
||
76 | public function setCustomField($customField) { |
||
80 | |||
81 | /** |
||
82 | * @return array |
||
83 | */ |
||
84 | public function getCustomNestedField() { |
||
87 | |||
88 | /** |
||
89 | * @param array $customNestedField |
||
90 | * @return FooType |
||
91 | */ |
||
92 | public function setCustomNestedField($customNestedField) { |
||
96 | |||
97 | |||
98 | } |
||
99 | |||
100 |