BaseRedisThrottleTest::createStore()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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