1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 23:14:05 +00:00

Make RouteMode enum backed

This commit is contained in:
Samuel Štancl 2025-06-02 20:28:53 +02:00
parent f771aa8645
commit 8259b9b2ab
2 changed files with 8 additions and 4 deletions

View file

@ -132,6 +132,7 @@ $finder = Finder::create()
->in([
$project_path . '/src',
])
->exclude('Enums')
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)

View file

@ -4,9 +4,12 @@ declare(strict_types=1);
namespace Stancl\Tenancy\Enums;
enum RouteMode
/**
* Note: The backing values are not part of the public API and are subject to change.
*/
enum RouteMode: int
{
case TENANT;
case CENTRAL;
case UNIVERSAL;
case CENTRAL = 0b01;
case TENANT = 0b10;
case UNIVERSAL = 0b11;
}