1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 16:14:02 +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());
}