Update::partName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Author: Nil Portugués Calderó <[email protected]>
4
 * Date: 6/3/14
5
 * Time: 12:07 AM.
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace NilPortugues\Sql\QueryBuilder\Manipulation;
12
13
/**
14
 * Class Update.
15
 */
16
class Update extends AbstractCreationalQuery
17
{
18
    /**
19
     * @var int
20
     */
21
    protected $limitStart;
22
23
    /**
24
     * @var array
25
     */
26
    protected $orderBy = [];
27
28
    /**
29
     * @return string
30
     */
31
    public function partName()
32
    {
33
        return 'UPDATE';
34
    }
35
36
    /**
37
     * @return int
38
     */
39
    public function getLimitStart()
40
    {
41
        return $this->limitStart;
42
    }
43
44
    /**
45
     * @param int $start
46
     *
47
     * @return $this
48
     */
49
    public function limit($start)
50
    {
51
        $this->limitStart = $start;
52
53
        return $this;
54
    }
55
}
56