Table::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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
}