mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 23:44:03 +00:00
Add UniqueIdentifierGenerators
This commit is contained in:
parent
787063ed73
commit
495bb7d541
5 changed files with 48 additions and 3 deletions
15
src/Interfaces/UniqueIdentifierGenerator.php
Normal file
15
src/Interfaces/UniqueIdentifierGenerator.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace Stancl\Tenancy\Interfaces;
|
||||
|
||||
interface UniqueIdentifierGenerator
|
||||
{
|
||||
/**
|
||||
* Generate a unique identifier.
|
||||
*
|
||||
* @param string $domain
|
||||
* @param array $data
|
||||
* @return string
|
||||
*/
|
||||
public static function handle(string $domain, array $data = []): string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue