eventId() public method

public eventId ( ) : integer
return integer
 /**
  * @param $aTypeName
  * @param StoredEvent $notification
  */
 public function trackMostRecentPublishedMessage($aTypeName, $notification)
 {
     if (!$notification) {
         return;
     }
     $maxId = $notification->eventId();
     $publishedMessage = $this->find($aTypeName);
     if (!$publishedMessage) {
         $publishedMessage = new PublishedMessage($aTypeName, $maxId);
     }
     $publishedMessage->updateMostRecentPublishedMessageId($maxId);
     $this->getEntityManager()->persist($publishedMessage);
     $this->getEntityManager()->flush($publishedMessage);
 }