Completed
Pull Request — 3.x (#120)
by
unknown
01:47
created

Delete::offset()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
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\Sqlite;
10
11
use Aura\SqlQuery\Common;
12
13
/**
14
 *
15
 * An object for Sqlite DELETE queries.
16
 *
17
 * @package Aura.SqlQuery
18
 *
19
 */
20
class Delete extends Common\Delete implements Common\OrderByInterface, Common\LimitOffsetInterface
21
{
22
    use Common\LimitOffsetTrait;
23
24
    /**
25
     *
26
     * Adds a column order to the query.
27
     *
28
     * @param array $spec The columns and direction to order by.
29
     *
30
     * @return $this
31
     *
32
     */
33 1
    public function orderBy(array $spec)
34
    {
35 1
        return $this->addOrderBy($spec);
36
    }
37
}
38