Table   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 22
ccs 5
cts 5
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getName() 0 3 1
1
<?php declare(strict_types=1);
2
namespace Y0lk\SQLDumper;
3
4
/**
5
 * A Table object represents a SQL table
6
 *
7
 * @author Gabriel Jean <[email protected]>
8
 */
9
class Table {
10
    /**
11
     * @var string
12
     */
13
    protected $name;
14
15
    /**
16
     * @param string    Table name as a string
17
     */
18 114
    public function __construct(string $name) 
19
    {
20 114
        $this->name = $name;
21 114
    }
22
23
    /**
24
     * Get the name of the table
25
     * 
26
     * @return string
27
     */
28 90
    public function getName(): string
29
    {
30 90
        return $this->name;
31
    }
32
}