mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 14:54:03 +00:00
20 lines
443 B
PHP
20 lines
443 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Stancl\Tenancy\Contracts;
|
|
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
|
|
|
// todo move all resource syncing-related things to a separate namespace?
|
|
|
|
/**
|
|
* @property-read Tenant[]|Collection $tenants
|
|
*/
|
|
interface SyncMaster extends Syncable
|
|
{
|
|
public function tenants(): BelongsToMany;
|
|
|
|
public function getTenantModelName(): string;
|
|
}
|