<?php
declare(strict_types=1);

/**
 * Copyright (c) 2025 TechDivision GmbH
 * All rights reserved
 *
 * This product includes proprietary software developed at TechDivision GmbH, Germany
 * For more information see https://www.techdivision.com/
 *
 * To obtain a valid license for using this software please contact us at
 * license@techdivision.com
 *
 * @copyright  Copyright (c) 2025 TechDivision GmbH (https://www.techdivision.com)
 * @author     TechDivision Team Zero <zero@techdivision.com>
 * @link       https://www.techdivision.com/
 */

namespace Firegento\ContentProvisioning\Model;

use Firegento\ContentProvisioning\ViewModel\ChangedBlockDataProvider;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class RenderChangedBlockList
{
    /**
     * @var ChangedBlockDataProvider
     */
    private ChangedBlockDataProvider $changedBlockDataProvider;

    /**
     * @param ChangedBlockDataProvider $changedBlockDataProvider
     */
    public function __construct(
        ChangedBlockDataProvider $changedBlockDataProvider
    ) {
        $this->changedBlockDataProvider = $changedBlockDataProvider;
    }

    /**
     * Render table with CMS block information
     * @param InputInterface $input
     * @param OutputInterface $output
     * @param array $entries
     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
     */
    public function renderTable(InputInterface $input, OutputInterface $output, array $entries)
    {
        $this->changedBlockDataProvider->execute($input, $output, $entries);
    }
}