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

Delete::getConfigs()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 9
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\ColTrait;
18
use Phossa2\Query\Traits\Clause\JoinTrait;
19
use Phossa2\Query\Traits\Clause\PartitionTrait;
20
use Phossa2\Query\Interfaces\Clause\ColInterface;
21
use Phossa2\Query\Interfaces\Clause\JoinInterface;
22
use Phossa2\Query\Interfaces\Clause\PartitionInterface;
23
use Phossa2\Query\Dialect\Common\Delete as CommonDelete;
24
25
/**
26
 * Mysql Delete
27
 *
28
 * @package Phossa2\Query
29
 * @author  Hong Zhang <[email protected]>
30
 * @see     CommonDelete
31
 * @see     JoinInterface
32
 * @see     PartitionInterface
33
 * @version 2.0.0
34
 * @since   2.0.0 added
35
 */
36
class Delete extends CommonDelete implements ColInterface, JoinInterface, PartitionInterface
37
{
38
    use ColTrait, PartitionTrait, JoinTrait;
39
40
    /**
41
     * {@inheritDoc}
42
     */
43
    protected function getConfigs()/*# : array */
44
    {
45
        return [
46
            'COL' => '',
47
            'TABLE' => 'FROM',
48
            'JOIN' => '',
49
            'PARTITION' => 'PARTITION',
50
            'WHERE' => 'WHERE',
51
            'ORDER' => 'ORDER BY',
52
            'LIMIT' => 'LIMIT',
53
        ];
54
    }
55
}
56