src/AbstractFilter.php
protected function set_options( array $options = [ ] ) {

		foreach ( $options as $key => $value ) {
			if ( ! array_key_exists( $key, $this->options ) ) {
				throw new \InvalidArgumentException(
					sprintf( 'The option "%1$s" does not have a matching option[%1$s] array key', $key ),
					1.0
				);
				continue;
			}

			$this->options[ $key ] = $value;
		}
	}
protected function set_options( array $options = [ ] ) {

		foreach ( $options as $key => $value ) {
			if ( ! array_key_exists( $key, $this->options ) ) {
				throw new \InvalidArgumentException(
					sprintf( 'The option "%1$s" does not have a matching option[%1$s] array key', $key ),
					1.0
				);
				continue;
			}

			$this->options[ $key ] = $value;
		}
	}
protected function set_options ( array $ options = [ ] ) { foreach ( $ options as $ key => $ value ) { if ( ! array_key_exists ( $ key , $ this -> options ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The option "%1$s" does not have a matching option[%1$s] array key' , $ key ) , 1.0 ) ; continue ; } $ this -> options [ $ key ] = $ value ; } }
Setting the given options from constructor.

@param array $options

@throws \InvalidArgumentException if the given option is not available to overwrite.
Setting the given options from constructor .