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

Delete   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 20
rs 10
c 0
b 0
f 0

1 Method

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