Neos\Media\Domain\Model\Adjustment\AbstractAdjustment::__construct PHP Method

__construct() public method

Constructs this adjustment
public __construct ( array $options = [] )
$options array configuration options - depends on the actual adjustment
    public function __construct(array $options = array())
    {
        foreach ($options as $optionKey => $optionValue) {
            $methodName = 'set' . ucfirst($optionKey);
            if (method_exists($this, $methodName)) {
                $this->{$methodName}($optionValue);
            } else {
                throw new \InvalidArgumentException('Invalid adjustment option "' . $optionKey . '" for adjustment of type "' . get_class($this) . '"', 1381395072);
            }
        }
    }
AbstractAdjustment