src/Builder.php
public function with($options)
    {
        $clone = clone $this;
        foreach ($options as $name => $value) {
            $clone->setOption($name, $value);
        }

        return $clone;
    }
public function with($options)
    {
        $clone = clone $this;
        foreach ($options as $name => $value) {
            $clone->setOption($name, $value);
        }

        return $clone;
    }
public function with ( $ options ) { $ clone = clone $ this ; foreach ( $ options as $ name => $ value ) { $ clone -> setOption ( $ name , $ value ) ; } return $ clone ; }
Clones the instance and applies new set of options

@param $options

@return Builder
Clones the instance and applies new set of options