1
0
Fork 0
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:
Samuel Štancl 2020-06-08 21:35:41 +02:00
parent 6735d0a589
commit e93e766f92
5 changed files with 6 additions and 6 deletions

View file

@ -8,7 +8,7 @@ interface Syncable
{
public function getGlobalIdentifierKeyName(): string;
public function getGlobalIdentifierKey(): string;
public function getGlobalIdentifierKey();
public function getCentralModelName(): string;

View file

@ -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);

View file

@ -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());
}

View file

@ -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());
}

View file

@ -224,7 +224,7 @@ class AnotherTenant extends Model implements Contracts\Tenant
return 'id';
}
public function getTenantKey(): string
public function getTenantKey()
{
return $this->getAttribute('id');
}