public function with_value( $value ) {
		if ( $this->value === $value ) {
			return $this;
		}

		$cloned_token        = clone $this;
		$cloned_token->value = $value;

		return $cloned_token;
	}
public function with_value( $value ) {
		if ( $this->value === $value ) {
			return $this;
		}

		$cloned_token        = clone $this;
		$cloned_token->value = $value;

		return $cloned_token;
	}
public function with_value ( $ value ) { if ( $ this -> value === $ value ) { return $ this ; } $ cloned_token = clone $ this ; $ cloned_token -> value = $ value ; return $ cloned_token ; }
Create a new token with the same type, but a different value.
If the value is unchanged, the original token is returned.

@param  string $value The value attribute.

@return Token
Create a new token with the same type but a different value . If the value is unchanged the original token is returned .