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

StatementInfo   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 17
ccs 1
cts 1
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
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