public function getIndexNameForWrite(Indexed $event): string
    {
        /** @var \DateTime $occurredAt */
        $occurredAt = $event->get('occurred_at')->toDateTime();
        return $this->indexPrefix . $this->getIndexIntervalSuffix($occurredAt);
    }
public function getIndexNameForWrite(Indexed $event): string
    {
        /** @var \DateTime $occurredAt */
        $occurredAt = $event->get('occurred_at')->toDateTime();
        return $this->indexPrefix . $this->getIndexIntervalSuffix($occurredAt);
    }
public function getIndexNameForWrite ( Indexed $ event ) : string { /** @var \DateTime $occurredAt */ $ occurredAt = $ event -> get ( 'occurred_at' ) -> toDateTime ( ) ; return $ this -> indexPrefix . $ this -> getIndexIntervalSuffix ( $ occurredAt ) ; }
Returns the name of the index that the event should be written to.

@param Indexed $event

@return string
Returns the name of the index that the event should be written to .