mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 21:34:04 +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([
|
->in([
|
||||||
$project_path . '/src',
|
$project_path . '/src',
|
||||||
])
|
])
|
||||||
|
->exclude('Enums')
|
||||||
->name('*.php')
|
->name('*.php')
|
||||||
->notName('*.blade.php')
|
->notName('*.blade.php')
|
||||||
->ignoreDotFiles(true)
|
->ignoreDotFiles(true)
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,12 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace Stancl\Tenancy\Enums;
|
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 = 0b01;
|
||||||
case CENTRAL;
|
case TENANT = 0b10;
|
||||||
case UNIVERSAL;
|
case UNIVERSAL = 0b11;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue