AbstractStreamQuery::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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