Update   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 5
dl 0
loc 24
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getConfigs() 0 8 1
A getType() 0 4 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\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