public function addEntry(
        $token,
        $event,
        $uniqueId,
        $type,
        DateTime $dateTime
    ) {
        $entry = $this
            ->entryFactory
            ->create(
                $token,
                $event,
                $uniqueId,
                $type,
                $dateTime
            );

        $this->entryObjectManager->persist($entry);
        $this->entryObjectManager->flush($entry);

        $this
            ->metricsBucket
            ->add($entry);

        return $this;
    }
public function addEntry(
        $token,
        $event,
        $uniqueId,
        $type,
        DateTime $dateTime
    ) {
        $entry = $this
            ->entryFactory
            ->create(
                $token,
                $event,
                $uniqueId,
                $type,
                $dateTime
            );

        $this->entryObjectManager->persist($entry);
        $this->entryObjectManager->flush($entry);

        $this
            ->metricsBucket
            ->add($entry);

        return $this;
    }
public function addEntry ( $ token , $ event , $ uniqueId , $ type , DateTime $ dateTime ) { $ entry = $ this -> entryFactory -> create ( $ token , $ event , $ uniqueId , $ type , $ dateTime ) ; $ this -> entryObjectManager -> persist ( $ entry ) ; $ this -> entryObjectManager -> flush ( $ entry ) ; $ this -> metricsBucket -> add ( $ entry ) ; return $ this ; }
Adds a new entry into database and into metrics bucket.

@param string   $token    Event
@param string   $event    Token
@param string   $uniqueId Unique id
@param int      $type     Type
@param DateTime $dateTime DateTime

@return $this Self Object
Adds a new entry into database and into metrics bucket .