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

Table   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 24
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getName() 0 4 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
}