mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 09:34:04 +00:00
The old names of the class and method were misleading. We don't actually need any relation. And we don't even need a model instance as we were returning previously -- the only use of that method was in TriggerSyncingEvents which would immediately use ::class on the returned value. Therefore, all we are asking for in this interface is just the central resource class.
16 lines
375 B
PHP
16 lines
375 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Stancl\Tenancy\Tests\Etc\ResourceSyncing;
|
|
|
|
use Stancl\Tenancy\ResourceSyncing\PivotWithCentralResource;
|
|
use Stancl\Tenancy\ResourceSyncing\TenantPivot;
|
|
|
|
class CustomPivot extends TenantPivot implements PivotWithCentralResource
|
|
{
|
|
public function getCentralResourceClass(): string
|
|
{
|
|
return CentralUser::class;
|
|
}
|
|
}
|