<?php
/**
 * @author 1902 Software
 * @copyright Copyright © 2023 1902 Software (https://1902software.com/magento/)
 * @package WriteTextAI_WriteTextAI
 */

namespace WriteTextAI\WriteTextAI\Cron;

use WriteTextAI\WriteTextAI\Model\SettingManager;

class LocationsImport
{
    /**
     * @var SettingManager
     */
    protected $settingsManager;

    /**
     * Constructor.
     *
     * @param SettingManager $settingsManager
     */
    public function __construct(
        SettingManager $settingsManager
    ) {
        $this->settingsManager = $settingsManager;
    }

    /**
     * Cron execute command
     */
    public function execute()
    {
        $this->settingsManager->syncSetting('locations');
    }
}
