mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 02:04:03 +00:00
23 lines
465 B
PHP
23 lines
465 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Stancl\Tenancy\Events;
|
|
|
|
use Stancl\Tenancy\Contracts\Syncable;
|
|
use Stancl\Tenancy\Contracts\TenantWithDatabase;
|
|
|
|
class SyncedResourceChangedInForeignDatabase
|
|
{
|
|
/** @var Syncable */
|
|
public $model;
|
|
|
|
/** @var TenantWithDatabase|null */
|
|
public $tenant;
|
|
|
|
public function __construct(Syncable $model, ?TenantWithDatabase $tenant)
|
|
{
|
|
$this->model = $model;
|
|
$this->tenant = $tenant;
|
|
}
|
|
}
|