Completed
Push — master ( 0e2450...c4efad )
by Maurício
42s queued 37s
created

StatementInfo::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 5
dl 0
loc 7
ccs 1
cts 1
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PhpMyAdmin\SqlParser\Utils;
6
7
use PhpMyAdmin\SqlParser\Parser;
8
use PhpMyAdmin\SqlParser\Statement;
9
10
final class StatementInfo
11
{
12
    /**
13
     * @param Parser         $parser       The parser used to analyze the statement.
14
     * @param Statement|null $statement    The first statement resulted from parsing.
15
     * @param array[]        $selectTables The real name of the tables selected; if there are no table names in the
16
     *                                     `SELECT` expressions, the table names are fetched from the `FROM` expressions
17
     * @psalm-param list<array{string|null, string|null}> $selectTables
18
     * @psalm-param list<string|null> $selectExpressions
19
     */
20 4
    public function __construct(
21
        public readonly Parser $parser,
22
        public readonly Statement|null $statement,
23
        public readonly StatementFlags $flags,
24
        public readonly array $selectTables,
25
        public readonly array $selectExpressions,
26
    ) {
27 4
    }
28
}
29