Conditions | 3 |
Paths | 4 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public static function make(Store $store, $cacheTag) |
||
11 | { |
||
12 | $cacheReflection = new ReflectionClass(get_class($store)); |
||
13 | $storeParent = $cacheReflection->getParentClass(); |
||
14 | $parentName = $storeParent ? $storeParent->name : ''; |
||
|
|||
15 | return $parentName == 'Illuminate\Cache\TaggableStore' ? new TaggedRepository($store, $cacheTag) : new SimpleRepository($store, $cacheTag); |
||
16 | } |
||
18 |