mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 06:44:04 +00:00
Remove unnecessary typehints
This commit is contained in:
parent
6735d0a589
commit
e93e766f92
5 changed files with 6 additions and 6 deletions
|
|
@ -8,7 +8,7 @@ interface Syncable
|
|||
{
|
||||
public function getGlobalIdentifierKeyName(): string;
|
||||
|
||||
public function getGlobalIdentifierKey(): string;
|
||||
public function getGlobalIdentifierKey();
|
||||
|
||||
public function getCentralModelName(): string;
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ interface Tenant
|
|||
public function getTenantKeyName(): string;
|
||||
|
||||
/** Get the value of the key used for identifying the tenant. */
|
||||
public function getTenantKey(): ?string;
|
||||
public function getTenantKey();
|
||||
|
||||
/** Get the value of an internal key. */
|
||||
public function getInternal(string $key);
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ class Tenant extends Model implements Contracts\Tenant
|
|||
return 'id';
|
||||
}
|
||||
|
||||
public function getTenantKey(): ?string
|
||||
public function getTenantKey()
|
||||
{
|
||||
return $this->getAttribute($this->getTenantKeyName());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -603,7 +603,7 @@ class CentralUser extends Model implements SyncMaster
|
|||
return ResourceUser::class;
|
||||
}
|
||||
|
||||
public function getGlobalIdentifierKey(): string
|
||||
public function getGlobalIdentifierKey()
|
||||
{
|
||||
return $this->getAttribute($this->getGlobalIdentifierKeyName());
|
||||
}
|
||||
|
|
@ -636,7 +636,7 @@ class ResourceUser extends Model implements Syncable
|
|||
protected $guarded = [];
|
||||
public $timestamps = false;
|
||||
|
||||
public function getGlobalIdentifierKey(): string
|
||||
public function getGlobalIdentifierKey()
|
||||
{
|
||||
return $this->getAttribute($this->getGlobalIdentifierKeyName());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -224,7 +224,7 @@ class AnotherTenant extends Model implements Contracts\Tenant
|
|||
return 'id';
|
||||
}
|
||||
|
||||
public function getTenantKey(): string
|
||||
public function getTenantKey()
|
||||
{
|
||||
return $this->getAttribute('id');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue