protected function findNextMessages($types)
    {
        return $this->messageManager->findByTypes($types, MessageInterface::STATE_OPEN, $this->batchSize);
    }
protected function findNextMessages($types)
    {
        return $this->messageManager->findByTypes($types, MessageInterface::STATE_OPEN, $this->batchSize);
    }
protected function findNextMessages ( $ types ) { return $ this -> messageManager -> findByTypes ( $ types , MessageInterface :: STATE_OPEN , $ this -> batchSize ) ; }
Find open messages.

@param array $types

@return mixed
Find open messages .