<?php

declare(strict_types=1);

namespace Builder\Seo\Enums;

enum RedirectType: string
{
    case Permanent = 'permanent';
    case Temporary = 'temporary';

    public function statusCode(): int
    {
        return match ($this) {
            self::Permanent => 301,
            self::Temporary => 302,
        };
    }
}
