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

namespace WriteTextAI\WriteTextAI\Cron;

use WriteTextAI\WriteTextAI\Model\Keywords\ReuploadThumbnails as ReuploadThumbnailsModel;

class ReuploadThumbnails
{
    /**
     * @var ReuploadThumbnailsModel
     */
    protected $reuploadThumbnailsModel;

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

    /**
     * Cron execute command
     */
    public function execute()
    {
        $this->reuploadThumbnailsModel->execute();
    }
}
