<?php
namespace Magento\Framework\Api\ImageProcessor;

/**
 * Interceptor class for @see \Magento\Framework\Api\ImageProcessor
 */
class Interceptor extends \Magento\Framework\Api\ImageProcessor implements \Magento\Framework\Interception\InterceptorInterface
{
    use \Magento\Framework\Interception\Interceptor;

    public function __construct(\Magento\Framework\Filesystem $fileSystem, \Magento\Framework\Api\ImageContentValidatorInterface $contentValidator, \Magento\Framework\Api\DataObjectHelper $dataObjectHelper, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Api\Uploader $uploader)
    {
        $this->___init();
        parent::__construct($fileSystem, $contentValidator, $dataObjectHelper, $logger, $uploader);
    }

    /**
     * {@inheritdoc}
     */
    public function save(\Magento\Framework\Api\CustomAttributesDataInterface $dataObjectWithCustomAttributes, $entityType, ?\Magento\Framework\Api\CustomAttributesDataInterface $previousCustomerData = null)
    {
        $pluginInfo = $this->pluginList->getNext($this->subjectType, 'save');
        return $pluginInfo ? $this->___callPlugins('save', func_get_args(), $pluginInfo) : parent::save($dataObjectWithCustomAttributes, $entityType, $previousCustomerData);
    }

    /**
     * {@inheritdoc}
     */
    public function processImageContent($entityType, $imageContent)
    {
        $pluginInfo = $this->pluginList->getNext($this->subjectType, 'processImageContent');
        return $pluginInfo ? $this->___callPlugins('processImageContent', func_get_args(), $pluginInfo) : parent::processImageContent($entityType, $imageContent);
    }
}
