src/SlugOptions.php
public function merge(iterable $options): self
	{
		$merged = clone $this;

		foreach ($options as $option => $value) {
			$this->assertOptionName($option);
			$merged->{'set'.ucfirst($option)}($value);
		}

		return $merged;
	}
public function merge(iterable $options): self
	{
		$merged = clone $this;

		foreach ($options as $option => $value) {
			$this->assertOptionName($option);
			$merged->{'set'.ucfirst($option)}($value);
		}

		return $merged;
	}
public function merge ( iterable $ options ) : self { $ merged = clone $ this ; foreach ( $ options as $ option => $ value ) { $ this -> assertOptionName ( $ option ) ; $ merged -> { 'set' . ucfirst ( $ option ) } ( $ value ) ; } return $ merged ; }
Merge the options with and return a new options object.

@param iterable $options SlugOptions object or options array

@return static
Merge the options with and return a new options object .