protected function getLastPause(DeliveryExecution $deliveryExecution)
    {
        $deliveryLogService = $this->getServiceLocator()->get(DeliveryLog::SERVICE_ID);
        $pauses = array_reverse($deliveryLogService->get($deliveryExecution->getIdentifier(), 'TEST_PAUSE'));
        return isset($pauses[0]) ? (new DateTimeImmutable())->setTimestamp($pauses[0]['created_at']) : null;
    }
protected function getLastPause(DeliveryExecution $deliveryExecution)
    {
        $deliveryLogService = $this->getServiceLocator()->get(DeliveryLog::SERVICE_ID);
        $pauses = array_reverse($deliveryLogService->get($deliveryExecution->getIdentifier(), 'TEST_PAUSE'));
        return isset($pauses[0]) ? (new DateTimeImmutable())->setTimestamp($pauses[0]['created_at']) : null;
    }
protected function getLastPause ( DeliveryExecution $ deliveryExecution ) { $ deliveryLogService = $ this -> getServiceLocator ( ) -> get ( DeliveryLog :: SERVICE_ID ) ; $ pauses = array_reverse ( $ deliveryLogService -> get ( $ deliveryExecution -> getIdentifier ( ) , 'TEST_PAUSE' ) ) ; return isset ( $ pauses [ 0 ] ) ? ( new DateTimeImmutable ( ) ) -> setTimestamp ( $ pauses [ 0 ] [ 'created_at' ] ) : null ; }
Get time of last pause
@param DeliveryExecution $deliveryExecution
@return \DateTimeImmutable|null
Get time of last pause