src/Variant/VariantProcessor.php
public function setConfig(array $config)
    {
        $this->config = $config;

        if (array_key_exists(static::CONFIG_VARIANT_FACTORY, $config)) {
            $this->strategyFactory->setConfig(
                $config[ static::CONFIG_VARIANT_FACTORY ]
            );
        }

        return $this;
    }
public function setConfig(array $config)
    {
        $this->config = $config;

        if (array_key_exists(static::CONFIG_VARIANT_FACTORY, $config)) {
            $this->strategyFactory->setConfig(
                $config[ static::CONFIG_VARIANT_FACTORY ]
            );
        }

        return $this;
    }
public function setConfig ( array $ config ) { $ this -> config = $ config ; if ( array_key_exists ( static :: CONFIG_VARIANT_FACTORY , $ config ) ) { $ this -> strategyFactory -> setConfig ( $ config [ static :: CONFIG_VARIANT_FACTORY ] ) ; } return $ this ; }
Sets configuration for the processor.

@param array $config
@return $this
Sets configuration for the processor .