<?php

namespace Planaday\Config\OptionGroups\Booking\Submission\Redirecting;

use Planaday\Utility\DataGrouping\Enum;

class RedirectOptionsEnum extends Enum {
	/** @var string bool BoolOption */
	public const REDIRECT_AFTER_SUCCESS = 'REDIRECT_AFTER_SUCCESS';

	/** @var string int PageOption */
	public const REDIRECT_SUCCESS_PAGE = 'REDIRECT_SUCCESS_PAGE';

	/** @var string string TextOption */
	public const NO_REDIRECT_SUCCESS_TEXT = 'NO_REDIRECT_SUCCESS_TEXT';

	/** @var string bool BoolOption */
	public const REDIRECT_AFTER_FAILURE = 'REDIRECT_AFTER_FAILURE';

	/** @var string int PageOption */
	public const REDIRECT_FAILURE_PAGE = 'REDIRECT_FAILURE_PAGE';

	/** @var string string TextOption */
	public const NO_REDIRECT_FAILURE_TEXT = 'NO_REDIRECT_FAILURE_TEXT';


	/**
	 * @inheritDoc
	 */
	public static function getEnumArray(): array {
		return [
			'REDIRECT_AFTER_SUCCESS' => self::REDIRECT_AFTER_SUCCESS,
			'REDIRECT_SUCCESS_PAGE' => self::REDIRECT_SUCCESS_PAGE,
			'NO_REDIRECT_SUCCESS_TEXT' => self::NO_REDIRECT_SUCCESS_TEXT,
			'REDIRECT_AFTER_FAILURE' => self::REDIRECT_AFTER_FAILURE,
			'REDIRECT_FAILURE_PAGE' => self::REDIRECT_FAILURE_PAGE,
			'NO_REDIRECT_FAILURE_TEXT' => self::NO_REDIRECT_FAILURE_TEXT,
		];
	}
}