protected function setup( array $rule ) {
		foreach ( $rule as $key => $value ) {
			if ( $key === 'operator' ) {
				$value = strtoupper( $value );
				$value = html_entity_decode( $value );
			} else if ( $key === 'slug' ) {
				$value = papify( $value );
			} else if ( $key === 'source' ) {
				$value = $this->setup_source( $value );
			}

			$this->$key = $value;
		}
	}
protected function setup( array $rule ) {
		foreach ( $rule as $key => $value ) {
			if ( $key === 'operator' ) {
				$value = strtoupper( $value );
				$value = html_entity_decode( $value );
			} else if ( $key === 'slug' ) {
				$value = papify( $value );
			} else if ( $key === 'source' ) {
				$value = $this->setup_source( $value );
			}

			$this->$key = $value;
		}
	}
protected function setup ( array $ rule ) { foreach ( $ rule as $ key => $ value ) { if ( $ key === 'operator' ) { $ value = strtoupper ( $ value ) ; $ value = html_entity_decode ( $ value ) ; } else if ( $ key === 'slug' ) { $ value = papify ( $ value ) ; } else if ( $ key === 'source' ) { $ value = $ this -> setup_source ( $ value ) ; } $ this -> $ key = $ value ; } }
Setup the rule and assign properties with values.

@param array  $rule
Setup the rule and assign properties with values .