Completed
Push — resets ( d2f77b )
by Paul
02:06
created

Delete::returning()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 *
4
 * This file is part of Aura for PHP.
5
 *
6
 * @license http://opensource.org/licenses/bsd-license.php BSD
7
 *
8
 */
9
namespace Aura\SqlQuery\Pgsql;
10
11
use Aura\SqlQuery\Common;
12
13
/**
14
 *
15
 * An object for PgSQL UPDATE queries.
16
 *
17
 * @package Aura.SqlQuery
18
 *
19
 */
20
class Delete extends Common\Delete implements Common\ReturningInterface
21
{
22
    /**
23
     *
24
     * Adds returning columns to the query.
25
     *
26
     * Multiple calls to returning() will append to the list of columns, not
27
     * overwrite the previous columns.
28
     *
29
     * @param array $cols The column(s) to add to the query.
30
     *
31
     * @return $this
32
     *
33
     */
34 1
    public function returning(array $cols)
35
    {
36 1
        return $this->addReturning($cols);
37
    }
38
}
39