QueryEntity   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 12
c 2
b 0
f 0
dl 0
loc 52
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Lagdo\DbAdmin\Driver\Entity;
4
5
class QueryEntity
6
{
7
    /**
8
     * The SQL queries to parse.
9
     *
10
     * @var string
11
     */
12
    public $queries = '';
13
14
    /**
15
     * The last parsed SQL query.
16
     *
17
     * @var string
18
     */
19
    public $query = '';
20
21
    /**
22
     * @var string
23
     */
24
    public $delimiter = ';';
25
26
    /**
27
     * @var int
28
     */
29
    public $offset = 0;
30
31
    /**
32
     * @var int
33
     */
34
    public $limit = 0;
35
36
    /**
37
     * @var bool
38
     */
39
    public $errorStops = 0;
40
41
    /**
42
     * @var bool
43
     */
44
    public $onlyErrors = 0;
45
46
    /**
47
     * The constructor
48
     *
49
     * @param string $queries
50
     */
51
    public function __construct(string $queries, int $limit, bool $errorStops, bool $onlyErrors)
52
    {
53
        $this->queries = $queries;
54
        $this->limit = $limit;
55
        $this->errorStops = $errorStops;
56
        $this->onlyErrors = $onlyErrors;
57
    }
58
}
59