Magic360GalleryDeleteProcessor   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getStatements() 0 8 1
1
<?php
2
3
/**
4
 * TechDivision\Import\Product\Magic360\Actions\Processors\UrlRewriteDeleteProcessor
5
 *
6
 * NOTICE OF LICENSE
7
 *
8
 * This source file is subject to the Open Software License (OSL 3.0)
9
 * that is available through the world-wide-web at this URL:
10
 * http://opensource.org/licenses/osl-3.0.php
11
 *
12
 * PHP version 5
13
 *
14
 * @author    Tim Wagner <[email protected]>
15
 * @author    Bernhard Wick <[email protected]>
16
 * @copyright 2017 TechDivision GmbH <[email protected]>
17
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
 * @link      https://github.com/techdivision/import-product-magic360
19
 * @link      http://www.techdivision.com
20
 */
21
22
namespace TechDivision\Import\Product\Magic360\Actions\Processors;
23
24
use TechDivision\Import\Product\Magic360\Utils\SqlStatementKeys;
25
use TechDivision\Import\Actions\Processors\AbstractDeleteProcessor;
26
27
/**
28
 * The magic360 gallery delete processor implementation.
29
 *
30
 * @author    Tim Wagner <[email protected]>
31
 * @author    Bernhard Wick <[email protected]>
32
 * @copyright 2017 TechDivision GmbH <[email protected]>
33
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
34
 * @link      https://github.com/techdivision/import-product-magic360
35
 * @link      http://www.techdivision.com
36
 */
37
class Magic360GalleryDeleteProcessor extends AbstractDeleteProcessor
38
{
39
40
    /**
41
     * Returns the array with the SQL statements that has to be prepared.
42
     *
43
     * @return array The SQL statements to be prepared
44
     * @see \TechDivision\Import\Actions\Processors\AbstractBaseProcessor::getStatements()
45
     */
46
    protected function getStatements()
47
    {
48
49
        // return the array with the SQL statements that has to be prepared
50
        return array(
51
            SqlStatementKeys::DELETE_MAGIC360_GALLERY => $this->loadStatement(SqlStatementKeys::DELETE_MAGIC360_GALLERY)
52
        );
53
    }
54
}
55