public function get($deliveryExecutionId, $eventId = null)
    {
        $queryBuilder = $this->getQueryBuilder();
        $queryBuilder
            ->select('*')
            ->from(static::TABLE_NAME)
            ->where(static::DELIVERY_EXECUTION_ID . '=:delivery_execution_id')
            ->setParameter('delivery_execution_id', $deliveryExecutionId)
        ;

        if ($eventId !== null) {
            $queryBuilder
                ->andWhere(static::EVENT_ID . '=:event_id')
                ->setParameter('event_id', $eventId);
            ;
        }

        $queryBuilder->orderBy(static::ID, 'ASC');

        $data = $queryBuilder->execute()->fetchAll(\PDO::FETCH_ASSOC);

        $result = $this->decodeValues($data);

        return $result;
    }