public function update( $tokens ) {
		foreach ( $tokens as $index => $token ) {
			$this->text[ $index ] = $this->text[ $index ]->with_value( $token->value );
		}
	}
public function update( $tokens ) {
		foreach ( $tokens as $index => $token ) {
			$this->text[ $index ] = $this->text[ $index ]->with_value( $token->value );
		}
	}
public function update ( $ tokens ) { foreach ( $ tokens as $ index => $ token ) { $ this -> text [ $ index ] = $ this -> text [ $ index ] -> with_value ( $ token -> value ) ; } }
Updates the 'value' field for all matching tokens.

@param Token[] $tokens An array of tokens.
Updates the value field for all matching tokens .