Queries::__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\Entity;
5
6
/**
7
 * Class Queries
8
 */
9
final class Queries extends AbstractKsql
10
{
11
    /** @var RunningQuery[] */
12
    private $queries;
13
14
    /**
15
     * @param string $statementText
16
     * @param array  $queries
17
     */
18
    public function __construct(string $statementText, array $queries)
19
    {
20
        parent::__construct($statementText);
21
        $this->queries = $queries;
22
    }
23
24
    /**
25
     * @return RunningQuery[]
26
     */
27
    public function getQueries(): array
28
    {
29
        return $this->queries;
30
    }
31
}
32