UpdateQuery   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 12
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 5 1
1
<?php
2
3
namespace Rougin\Windstorm\Doctrine\Builder;
4
5
/**
6
 * Update Query
7
 *
8
 * @package Windstorm
9
 * @author  Rougin Gutib <[email protected]>
10
 */
11
class UpdateQuery extends AbstractQuery
12
{
13
    /**
14
     * Returns the compiled SQL.
15
     *
16
     * @return string
17
     */
18 9
    public function get()
19
    {
20 9
        $set = (string) ' SET ' . implode(', ', $this->parts['set']);
21
22 9
        return 'UPDATE ' . $this->table() . $set . $this->where();
23
    }
24
}
25