Completed
Push — master ( f3489f...f3489f )
by Gabriel
02:41 queued 01:29
created

Table   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 62.5%

Importance

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

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 60
    public function __construct($name) 
19
    {
20 60
        $this->name = $name;
21 60
    }
22
23
    /**
24
     * Get the name of the table
25
     * 
26
     * @return string
27
     */
28 44
    public function getName() 
29
    {
30 44
        return $this->name;
31
    }
32
}