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

Update   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigs() 0 10 1
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