<?php
/**
 * Temporary Login premium durations and limits — Pro overlay only.
 *
 * @package TemporaryLogin
 */

namespace TemporaryLogin;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Extra expiry types and create/update constraints used when Pro is licensed.
 */
final class Premium {

	/** @var list<string> */
	public const EXPIRY_TYPES = [
		'hour',
		'3_hours',
		'3_days',
		'week',
		'month',
		'custom',
	];

	public static function isPremiumExpiryType( string $type ): bool {
		return in_array( sanitize_key( $type ), self::EXPIRY_TYPES, true );
	}
}
