<?php
declare(strict_types=1);

namespace Ekesto\CacheWarmup\Multilingual;

/**
 * Optional adapter capability for temporarily switching language context.
 */
interface LanguageContextSwitcherInterface
{
    /**
     * Switch to a language, or restore the original context with null.
     *
     * @param string|null $language Language code or null.
     * @return void
     */
    public function switchLanguage(?string $language): void;
}
