1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 13:54:03 +00:00

Make RouteMode enum backed (#1362)

This commit is contained in:
Samuel Štancl 2025-06-02 20:34:49 +02:00 committed by GitHub
parent f771aa8645
commit e74e1f92e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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;
}