<?php
namespace ImageOptimizer;
use ImageOptimizer\Exception\Exception;
use Psr\Log\LoggerInterface;
class ChainOptimizer implements Optimizer
{
private $optimizers;
private $executeFirst;
private $logger;
public function __construct(array $optimizers, $executeFirst, LoggerInterface $logger)
{
$this->optimizers = $optimizers;
$this->executeFirst = (boolean) $executeFirst;
$this->logger = $logger;
}