DeleteQuery::get()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
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
 * Delete Query
7
 *
8
 * @package Windstorm
9
 * @author  Rougin Gutib <[email protected]>
10
 */
11
class DeleteQuery extends AbstractQuery
12
{
13
    /**
14
     * Returns the compiled SQL.
15
     *
16
     * @return string
17
     */
18 15
    public function get()
19
    {
20 15
        return 'DELETE FROM ' . $this->table() . $this->where();
21
    }
22
}
23