diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 15a75d64..c0fe775c 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -132,6 +132,7 @@ $finder = Finder::create() ->in([ $project_path . '/src', ]) + ->exclude('Enums') ->name('*.php') ->notName('*.blade.php') ->ignoreDotFiles(true) diff --git a/src/Enums/RouteMode.php b/src/Enums/RouteMode.php index b64e550c..b04833d9 100644 --- a/src/Enums/RouteMode.php +++ b/src/Enums/RouteMode.php @@ -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; }