| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function consumeEvent(PostTransformEvent $event): void |
||
| 28 | { |
||
| 29 | $this->buildProperty( |
||
| 30 | $event, |
||
| 31 | ProductInterface::class, |
||
| 32 | function (ProductInterface $product, Document $document): void { |
||
| 33 | $createdAt = (int) $product->getCreatedAt()->format('U'); |
||
| 34 | |||
| 35 | $document->set($this->createdAtProperty, $createdAt); |
||
| 36 | } |
||
| 40 |