| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 26 | public function addDataObject(DataObject $dataObject): void |
||
| 27 | { |
||
| 28 | $helper = new IndexingHelper(); |
||
| 29 | |||
| 30 | $payload = $helper->getFieldsToIndex($dataObject); |
||
| 31 | |||
| 32 | // as we are not indexing against a real free text search engine, add the ID into the payload for testing |
||
| 33 | $payload['ID'] = $dataObject->ID; |
||
| 34 | self::$payload[] = $payload; |
||
| 35 | } |
||
| 68 |