<?php

namespace BookneticApp\Providers\Helpers;

use BookneticApp\Providers\Core\CronJob;
use BookneticVendor\WP_Async_Request;

class BackgrouondProcess extends WP_Async_Request
{
    /**
     * @var string
     */
    protected $action = 'bkntc_background_process';

    /**
     * Handle
     *
     * Override this method to perform any actions required
     * during the async request.
     */
    protected function handle()
    {
        CronJob::runTasks();
    }

    public function getAction()
    {
        return $this->action;
    }
}
