mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 08:04:03 +00:00
Make RouteMode enum backed (#1362)
This commit is contained in:
parent
f771aa8645
commit
e74e1f92e1
2 changed files with 8 additions and 4 deletions
|
|
@ -132,6 +132,7 @@ $finder = Finder::create()
|
|||
->in([
|
||||
$project_path . '/src',
|
||||
])
|
||||
->exclude('Enums')
|
||||
->name('*.php')
|
||||
->notName('*.blade.php')
|
||||
->ignoreDotFiles(true)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue