BaseRedisThrottleTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
c 0
b 0
f 0
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A createStore() 0 3 1
1
<?php
2
3
namespace Zenstruck\Governator\Tests\Integration\Redis;
4
5
use Zenstruck\Governator\Store;
6
use Zenstruck\Governator\Store\RedisStore;
7
use Zenstruck\Governator\Tests\Integration\BaseThrottleTest;
8
9
/**
10
 * @author Kevin Bond <[email protected]>
11
 */
12
abstract class BaseRedisThrottleTest extends BaseThrottleTest
13
{
14
    protected function createStore(): Store
15
    {
16
        return new RedisStore($this->createConnection());
17
    }
18
19
    abstract protected function createConnection(): object;
20
}
21