1 | <?php |
||
4 | abstract class FlintRedisCacheFactory |
||
5 | { |
||
6 | const STRATEGY_REDIS = 1; |
||
7 | const STRATEGY_FLINTSTONE = 2; |
||
8 | |||
9 | private static $cachedInstances = []; |
||
10 | |||
11 | /** |
||
12 | * @var number Either FlintRedisCacheFactory::STRATEGY_REDIS or FlintRedisCacheFactory:: STRATEGY_FLINTSTONE |
||
13 | */ |
||
14 | public static $strategy = self::STRATEGY_REDIS; |
||
15 | |||
16 | /** |
||
17 | * @var array Options you want to pass to predis/flintstone |
||
18 | */ |
||
19 | public static $options = []; |
||
20 | |||
21 | /** |
||
22 | * Retrieves a new or previously created cache-instance for the provided |
||
23 | * parameters. |
||
24 | * |
||
25 | * @param string $realm Your collections name |
||
26 | * @return FlintRedisCache |
||
27 | */ |
||
28 | 6 | public static function create($realm, $strategy = false, $options = false) |
|
46 | |||
47 | 6 | private static function retrieveOldInstance($realm) |
|
51 | |||
52 | 6 | private static function newCacheInstance($realm) |
|
62 | } |
||
63 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..