TableEntity   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 91
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Lagdo\DbAdmin\Driver\Entity;
4
5
class TableEntity
6
{
7
    /**
8
     * @var string
9
     */
10
    public $name = '';
11
12
    /**
13
     * @var string
14
     */
15
    public $engine = '';
16
17
    /**
18
     * @var string
19
     */
20
    public $schema = '';
21
22
    /**
23
     * @var string
24
     */
25
    public $collation = '';
26
27
    /**
28
     * @var integer
29
     */
30
    public $dataLength = 0;
31
32
    /**
33
     * @var integer
34
     */
35
    public $indexLength = 0;
36
37
    /**
38
     * @var string
39
     */
40
    public $comment = '';
41
42
    /**
43
     * @var string
44
     */
45
    public $oid = '';
46
47
    /**
48
     * @var array
49
     */
50
    public $rows = [];
51
52
    /**
53
     * Columns to add when creating or altering a table.
54
     *
55
     * @var array
56
     */
57
    public $fields = [];
58
59
    /**
60
     * Columns to edit when altering a table.
61
     *
62
     * @var array
63
     */
64
    public $edited = [];
65
66
    /**
67
     * Columns to drop when altering a table.
68
     *
69
     * @var array
70
     */
71
    public $dropped = [];
72
73
    /**
74
     * @var array
75
     */
76
    public $foreign = [];
77
78
    /**
79
     * @var integer
80
     */
81
    public $autoIncrement = 0;
82
83
    /**
84
     * @var string
85
     */
86
    public $partitioning = '';
87
88
    /**
89
     * The constructor
90
     *
91
     * @param string $name The table name
92
     */
93
    public function __construct(string $name)
94
    {
95
        $this->name = $name;
96
    }
97
}
98