1 | <?php |
||
13 | class IndexItem |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | * |
||
18 | * @ORM\Id |
||
19 | * @ORM\Column(name="objectType", type="string", length=255) |
||
20 | */ |
||
21 | protected $objectType; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | * |
||
26 | * @ORM\Id |
||
27 | * @ORM\Column(name="otherId", type="string", length=255) |
||
28 | */ |
||
29 | protected $otherId; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | * |
||
34 | * @ORM\Id |
||
35 | * @ORM\Column(name="field", type="string", length=255) |
||
36 | */ |
||
37 | protected $field; |
||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | * |
||
42 | * @ORM\Column(name="value", type="text") |
||
43 | */ |
||
44 | protected $value; |
||
45 | |||
46 | /** |
||
47 | * @param string $objectType |
||
48 | * @param mixed $otherId |
||
49 | * @param string $field |
||
50 | * @param string $value |
||
51 | */ |
||
52 | 4 | public function __construct($objectType, $otherId, $field, $value) |
|
59 | |||
60 | /** |
||
61 | * @param mixed $objectType |
||
62 | */ |
||
63 | 4 | public function setObjectType($objectType) |
|
67 | |||
68 | /** |
||
69 | * @return mixed |
||
70 | */ |
||
71 | 1 | public function getObjectType() |
|
75 | |||
76 | /** |
||
77 | * Set otherId |
||
78 | * |
||
79 | * @param mixed $otherId |
||
80 | * |
||
81 | * @return IndexItem |
||
82 | */ |
||
83 | 4 | public function setOtherId($otherId) |
|
89 | |||
90 | /** |
||
91 | * Get otherId |
||
92 | * |
||
93 | * @return string |
||
94 | */ |
||
95 | 1 | public function getOtherId() |
|
99 | |||
100 | /** |
||
101 | * Set field |
||
102 | * |
||
103 | * @param string $field |
||
104 | * |
||
105 | * @return IndexItem |
||
106 | */ |
||
107 | 4 | public function setField($field) |
|
113 | |||
114 | /** |
||
115 | * Get field |
||
116 | * |
||
117 | * @return string |
||
118 | */ |
||
119 | 3 | public function getField() |
|
123 | |||
124 | /** |
||
125 | * Set value |
||
126 | * |
||
127 | * @param string $value |
||
128 | * |
||
129 | * @return IndexItem |
||
130 | */ |
||
131 | 4 | public function setValue($value) |
|
137 | |||
138 | /** |
||
139 | * Get value |
||
140 | * |
||
141 | * @return string |
||
142 | */ |
||
143 | 3 | public function getValue() |
|
147 | |||
148 | /** |
||
149 | * Create an array of search index items based on the object |
||
150 | * |
||
151 | * @param string $class |
||
152 | * @param string $id |
||
153 | * @param array $properties |
||
154 | * @param mixed $object |
||
155 | * @return array |
||
156 | */ |
||
157 | 2 | public static function createMultipleObjectsBasedOnProperties($class, $id, array $properties, $object) |
|
183 | } |
||
184 |