UpdateQuery::get()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 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