AbstractStreamQuery   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 20
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Ytake\KsqlClient\Query;
5
6
use Ytake\KsqlClient\StreamConsumable;
7
8
/**
9
 * Class AbstractStreamQuery
10
 */
11
abstract class AbstractStreamQuery implements StreamQueryInterface
12
{
13
    /** @var string */
14
    protected $query;
15
16
    /** @var StreamConsumable */
17
    protected $callback;
18
19
    /**
20
     * StreamQuery constructor.
21
     *
22
     * @param string           $query
23
     * @param StreamConsumable $callback
24
     */
25
    public function __construct(string $query, StreamConsumable $callback)
26
    {
27
        $this->query = $query;
28
        $this->callback = $callback;
29
    }
30
}
31