<?php

namespace WPDesk\FakturyKSEF\Services;

class ReconciliationCutOffDateService {
	private const ACTIVATION_DATE_KEY = 'inspire_invoices_ksef_activation_date';

	public function get_cut_off_date() {
		return get_option( self::ACTIVATION_DATE_KEY );
	}

	public function check_cut_off_date() {
		if ( ! get_option( self::ACTIVATION_DATE_KEY ) ) {
			update_option( self::ACTIVATION_DATE_KEY, time() );
		}
	}
}
