RunningQuery::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 3
1
<?php
2
declare(strict_types=1);
3
4
namespace Ytake\KsqlClient\Entity;
5
6
/**
7
 * Class RunningQuery
8
 */
9
class RunningQuery implements EntityInterface
10
{
11
    /** @var string */
12
    protected $queryString;
13
14
    /** @var array<string> */
15
    protected $sinks = [];
16
17
    /** @var string */
18
    protected $id;
19
20
    /**
21
     * RunningQuery constructor.
22
     *
23
     * @param string $queryString
24
     * @param array  $sinks
25
     * @param string $id
26
     */
27
    public function __construct(
28
        string $queryString,
29
        array $sinks,
30
        string $id
31
    ) {
32
        $this->queryString = $queryString;
33
        $this->sinks = $sinks;
34
        $this->id = $id;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getQueryString(): string
41
    {
42
        return $this->queryString;
43
    }
44
45
    /**
46
     * @return array
47
     */
48
    public function getSinks(): array
49
    {
50
        return $this->sinks;
51
    }
52
53
    /**
54
     * @return string
55
     */
56
    public function getId(): string
57
    {
58
        return $this->id;
59
    }
60
}
61