<?php
/**
 * User-facing value redaction helpers.
 *
 * @package ScheduledChanges
 */

namespace ScheduledChanges\Support;

/**
 * Redacts sensitive provider values for display and support payloads.
 */
final class ValueRedactor {
	public const REDACTED = '[redacted]';

	/**
	 * @param mixed $value Value to redact when sensitive.
	 * @return mixed
	 */
	public static function redact( bool $sensitive, $value ) {
		return $sensitive ? self::REDACTED : $value;
	}
}
