1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 17:44:04 +00:00

misc improvements - stronger types, exception refactor

This commit is contained in:
Samuel Štancl 2022-08-26 21:35:17 +02:00
parent ddc7cf49c3
commit 55d0a9ab87
34 changed files with 179 additions and 209 deletions

View file

@ -11,14 +11,11 @@ use Stancl\Tenancy\Contracts\TenantResolver;
abstract class CachedTenantResolver implements TenantResolver
{
/** @var bool */
public static $shouldCache = false;
public static bool $shouldCache = false; // todo docblocks for these
/** @var int */
public static $cacheTTL = 3600; // seconds
public static int $cacheTTL = 3600; // seconds
/** @var string|null */
public static $cacheStore = null; // default
public static string|null $cacheStore = null; // default
/** @var Repository */
protected $cache;