CXmlPunchoutCatalogConnectionFormatPlugin   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 25
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 3 1
A getConnectionFormat() 0 3 1
1
<?php
2
3
/**
4
 * Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\PunchoutCatalogs\Communication\Plugin\PunchoutCatalogs;
9
10
use Spryker\Zed\Kernel\Communication\AbstractPlugin;
11
use SprykerEco\Zed\PunchoutCatalogs\Communication\Form\PunchoutCatalogCXmlConnectionFormatForm;
12
use SprykerEco\Zed\PunchoutCatalogs\Dependency\Plugin\PunchoutCatalogConnectionFormatPluginInterface;
13
14
/**
15
 * @method \SprykerEco\Zed\PunchoutCatalogs\Communication\PunchoutCatalogsCommunicationFactory getFactory()
16
 * @method \SprykerEco\Zed\PunchoutCatalogs\PunchoutCatalogsConfig getConfig()
17
 * @method \SprykerEco\Zed\PunchoutCatalogs\Business\PunchoutCatalogsFacadeInterface getFacade()
18
 */
19
class CXmlPunchoutCatalogConnectionFormatPlugin extends AbstractPlugin implements PunchoutCatalogConnectionFormatPluginInterface
20
{
21
    /**
22
     * {@inheritDoc}
23
     *
24
     * @api
25
     *
26
     * @return string
27
     */
28
    public function getConnectionFormat(): string
29
    {
30
        return 'cxml';
31
    }
32
33
    /**
34
     * {@inheritDoc}
35
     * - Returns a form that is capable of handling all attributes related to the cXml connection format.
36
     *
37
     * @api
38
     *
39
     * @return string
40
     */
41
    public function getType(): string
42
    {
43
        return PunchoutCatalogCXmlConnectionFormatForm::class;
44
    }
45
}
46