Update::getConfigs()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
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\Common;
16
17
use Phossa2\Query\Traits\Clause\TableTrait;
18
use Phossa2\Query\Traits\Clause\WhereTrait;
19
use Phossa2\Query\Traits\StatementAbstract;
20
use Phossa2\Query\Traits\Clause\ClauseTrait;
21
use Phossa2\Query\Traits\Clause\UpdateTrait;
22
use Phossa2\Query\Interfaces\Statement\UpdateStatementInterface;
23
24
/**
25
 * Update
26
 *
27
 * @package Phossa2\Query
28
 * @author  Hong Zhang <[email protected]>
29
 * @see     StatementAbstract
30
 * @see     UpdateStatementInterface
31
 * @version 2.0.0
32
 * @since   2.0.0 added
33
 */
34
class Update extends StatementAbstract implements UpdateStatementInterface
35
{
36
    use ClauseTrait, UpdateTrait, TableTrait, WhereTrait;
37
38
    /**
39
     * {@inheritDoc}
40
     */
41
    protected function getConfigs()/*# : array */
42
    {
43
        return [
44
            'TABLE' => '',
45
            'SET' => 'SET',
46
            'WHERE' => 'WHERE',
47
        ];
48
    }
49
50
    /**
51
     * {@inheritDoc}
52
     */
53
    protected function getType()/*# : string */
54
    {
55
        return 'UPDATE';
56
    }
57
}
58