src/Sanitizer.php
public function setOption( $name, $value ) {

		if ( $name === self::WHITELIST && is_array( $value ) && $value !== array() ) {
			$this->whiteList = array_fill_keys( $value, true );
		}

		if ( $name === self::MIN_LENGTH ) {
			$this->minLength = (int)$value;
		}
	}
public function setOption( $name, $value ) {

		if ( $name === self::WHITELIST && is_array( $value ) && $value !== array() ) {
			$this->whiteList = array_fill_keys( $value, true );
		}

		if ( $name === self::MIN_LENGTH ) {
			$this->minLength = (int)$value;
		}
	}
@since 0.1

@param string $name
@param mixed $value