RunningQuery   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 52
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
A getQueryString() 0 4 1
A getSinks() 0 4 1
A getId() 0 4 1
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