Completed
Push — master ( dc3ccc...e475aa )
by Gabriel
01:58
created

Table::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
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 90
    public function __construct($name) 
19
    {
20 90
        $this->name = $name;
21 90
    }
22
23
    /**
24
     * Get the name of the table
25
     * 
26
     * @return string
27
     */
28 66
    public function getName() 
29
    {
30 66
        return $this->name;
31
    }
32
}