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;
    }
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;
    }
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 ; }
Get logged data by delivery execution id

@param string $deliveryExecutionId
@param string|null $eventId - filter data by event id
@return mixed
Get logged data by delivery execution id