Completed
Push — master ( 46dbb7...9c8538 )
by Hong
02:48
created

Update::getConfigs()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
/**
3
 * Phossa Project
4
 *
5
 * PHP version 5.4
6
 *
7
 * @category  Library
8
 * @package   Phossa2\Query
9
 * @copyright Copyright (c) 2016 phossa.com
10
 * @license   http://mit-license.org/ MIT License
11
 * @link      http://www.phossa.com/
12
 */
13
/*# declare(strict_types=1); */
14
15
namespace Phossa2\Query\Dialect\Mysql;
16
17
use Phossa2\Query\Traits\Clause\LimitTrait;
18
use Phossa2\Query\Traits\Clause\OrderTrait;
19
use Phossa2\Query\Interfaces\Clause\LimitInterface;
20
use Phossa2\Query\Interfaces\Clause\OrderInterface;
21
use Phossa2\Query\Dialect\Common\Update as CommonUpdate;
22
23
/**
24
 * Mysql Update
25
 *
26
 * @package Phossa2\Query
27
 * @author  Hong Zhang <[email protected]>
28
 * @see     CommonUpdate
29
 * @see     OrderInterface
30
 * @see     LimitInterface
31
 * @version 2.0.0
32
 * @since   2.0.0 added
33
 */
34
class Update extends CommonUpdate implements OrderInterface, LimitInterface
35
{
36
    use OrderTrait, LimitTrait;
37
38
    /**
39
     * {@inheritDoc}
40
     */
41
    protected function getConfigs()/*# : array */
42
    {
43
        return [
44
            'TABLE' => '',
45
            'SET' => 'SET',
46
            'WHERE' => 'WHERE',
47
            'ORDER' => 'ORDER BY',
48
            'LIMIT' => 'LIMIT',
49
        ];
50
    }
51
}
52