Completed
Pull Request — master (#3429)
by Gabriel
13:29
created

View   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 75%

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 21
ccs 6
cts 8
cp 0.75
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getSql() 0 3 1
1
<?php
2
3
namespace Doctrine\DBAL\Schema;
4
5
/**
6
 * Representation of a Database View.
7
 */
8
class View extends AbstractAsset
9
{
10
    /** @var string */
11
    private $sql;
12
13
    /**
14
     * @param string $name
15
     * @param string $sql
16
     */
17 27
    public function __construct($name, $sql)
18
    {
19 27
        $this->_setName($name);
20 27
        $this->sql = $sql;
21 27
    }
22
23
    /**
24
     * @return string
25
     */
26 27
    public function getSql()
27
    {
28 27
        return $this->sql;
29
    }
30
}
31