src/Variant/VariantStrategyFactory.php
public function make($strategy, array $options = [])
    {
        $instance = $this->instantiateClass(
            $this->resolveStrategyClassName($strategy)
        );

        if ( ! ($instance instanceof VariantStrategyInterface)) {
            throw new RuntimeException("Variant strategy created for '{$strategy}' is of incorrect type");
        }

        return $instance->setOptions($options);
    }
public function make($strategy, array $options = [])
    {
        $instance = $this->instantiateClass(
            $this->resolveStrategyClassName($strategy)
        );

        if ( ! ($instance instanceof VariantStrategyInterface)) {
            throw new RuntimeException("Variant strategy created for '{$strategy}' is of incorrect type");
        }

        return $instance->setOptions($options);
    }
public function make ( $ strategy , array $ options = [ ] ) { $ instance = $ this -> instantiateClass ( $ this -> resolveStrategyClassName ( $ strategy ) ) ; if ( ! ( $ instance instanceof VariantStrategyInterface ) ) { throw new RuntimeException ( "Variant strategy created for '{$strategy}' is of incorrect type" ) ; } return $ instance -> setOptions ( $ options ) ; }
Returns strategy instance.

@param string $strategy  strategy class or alias
@param array  $options   options for the strategy
@return VariantStrategyInterface
Returns strategy instance .