| Conditions | 1 |
| Paths | 1 |
| Total Lines | 31 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function normalizationDataProvider(): array |
||
| 17 | { |
||
| 18 | $variants = []; |
||
| 19 | $variants[] = [ |
||
| 20 | (new Mapping()) |
||
| 21 | ->setType(TypeEnum::BOOLEAN) |
||
| 22 | ->setFormat(DateTime::ISO8601), |
||
| 23 | ['type' => 'boolean'] |
||
| 24 | ]; |
||
| 25 | $variants[] = [ |
||
| 26 | (new Mapping()) |
||
| 27 | ->setType(TypeEnum::BOOLEAN) |
||
| 28 | ->setFormat(DateTime::ISO8601) |
||
| 29 | ->setDocValues(true) |
||
| 30 | ->setStore(true), |
||
| 31 | ['type' => 'boolean', 'store' => true, 'doc_values' => true] |
||
| 32 | ]; |
||
| 33 | $variants[] = [ |
||
| 34 | (new Mapping()) |
||
| 35 | ->setType(TypeEnum::OBJECT) |
||
| 36 | ->setProperties(['value' => (new Mapping())->setType(TypeEnum::BOOLEAN)]), |
||
| 37 | [ |
||
| 38 | 'type' => 'object', |
||
| 39 | 'properties' => [ |
||
| 40 | 'value' => [ |
||
| 41 | 'type' => 'boolean' |
||
| 42 | ] |
||
| 43 | ] |
||
| 44 | ] |
||
| 45 | ]; |
||
| 46 | return $variants; |
||
| 47 | } |
||
| 65 |