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

Update   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 19
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A returning() 0 4 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 Update extends Common\Update 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