Passed
Pull Request — master (#8)
by Sergey
02:17
created

RedisStream   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 5
dl 0
loc 26
ccs 3
cts 3
cp 1
rs 10
c 1
b 0
f 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Asiries335\redisSteamPhp;
6
7
abstract class RedisStream
8
{
9
    /**
10
     * Client
11
     *
12
     * @var ClientRedisStreamPhpInterface
13
     */
14
    protected $_client;
15
16
    /**
17
     * Name stream
18
     *
19
     * @var string
20
     */
21
    protected $_streamName;
22
23
    /**
24
     * Stream constructor.
25
     *
26
     * @param ClientRedisStreamPhpInterface $client     ClientRedisInterface
27
     * @param string                        $nameStream Name stream
28
     */
29 5
    public function __construct(ClientRedisStreamPhpInterface $client, string $nameStream)
30
    {
31 5
        $this->_client     = $client;
32 5
        $this->_streamName = $nameStream;
33
    }
34
}