<?php
namespace Amasty\Gdpr\Controller\Result\File;

/**
 * Interceptor class for @see \Amasty\Gdpr\Controller\Result\File
 */
class Interceptor extends \Amasty\Gdpr\Controller\Result\File implements \Magento\Framework\Interception\InterceptorInterface
{
    use \Magento\Framework\Interception\Interceptor;

    public function __construct(\Magento\Framework\Filesystem\Driver\File $fileDriver, \Magento\Framework\Filesystem $filesystem, \Amasty\Gdpr\Utils\Archive\ZipFactory $zipFactory, string $fileName = 'data', string $fileExtension = 'csv', array $data = [])
    {
        $this->___init();
        parent::__construct($fileDriver, $filesystem, $zipFactory, $fileName, $fileExtension, $data);
    }

    /**
     * {@inheritdoc}
     */
    public function renderResult(\Magento\Framework\App\ResponseInterface $response)
    {
        $pluginInfo = $this->pluginList->getNext($this->subjectType, 'renderResult');
        return $pluginInfo ? $this->___callPlugins('renderResult', func_get_args(), $pluginInfo) : parent::renderResult($response);
    }
}
