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

Replace::getConfigs()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 6
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\PartitionTrait;
18
use Phossa2\Query\Interfaces\Clause\PartitionInterface;
19
use Phossa2\Query\Dialect\Common\Replace as CommonReplace;
20
21
/**
22
 * Mysql Replace
23
 *
24
 * @package Phossa2\Query
25
 * @author  Hong Zhang <[email protected]>
26
 * @see     PartitionInterface
27
 * @version 2.0.0
28
 * @since   2.0.0 added
29
 */
30
class Replace extends CommonReplace implements PartitionInterface
31
{
32
    use PartitionTrait;
33
34
    /**
35
     * {@inheritDoc}
36
     */
37
    protected function getConfigs()/*# : array */
38
    {
39
        return [
40
            'TABLE' => 'INTO',
41
            'PARTITION' => 'PARTITION',
42
            'SET' => '',
43
            'VALUES' => 'VALUES',
44
        ];
45
    }
46
}
47