ShipmentGuiDependencyProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMoneyCollectionFormTypePlugin() 0 3 1
A getStoreRelationFormTypePlugin() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
declare(strict_types = 1);
9
10
namespace Pyz\Zed\ShipmentGui;
11
12
use Spryker\Zed\Kernel\Communication\Form\FormTypeInterface;
13
use Spryker\Zed\Kernel\Container;
14
use Spryker\Zed\MoneyGui\Communication\Plugin\Form\MoneyCollectionFormTypePlugin;
15
use Spryker\Zed\ShipmentGui\ShipmentGuiDependencyProvider as SprykerShipmentGuiDependencyProvider;
16
use Spryker\Zed\Store\Communication\Plugin\Form\StoreRelationToggleFormTypePlugin;
17
18
class ShipmentGuiDependencyProvider extends SprykerShipmentGuiDependencyProvider
19
{
20
    /**
21
     * @param \Spryker\Zed\Kernel\Container $container
22
     *
23
     * @return \Spryker\Zed\Kernel\Communication\Form\FormTypeInterface
24
     */
25
    protected function getMoneyCollectionFormTypePlugin(Container $container): FormTypeInterface // phpcs:ignore SlevomatCodingStandard.Functions.UnusedParameter
26
    {
27
        return new MoneyCollectionFormTypePlugin();
28
    }
29
30
    /**
31
     * @return \Spryker\Zed\Kernel\Communication\Form\FormTypeInterface
32
     */
33
    protected function getStoreRelationFormTypePlugin(): FormTypeInterface
34
    {
35
        return new StoreRelationToggleFormTypePlugin();
36
    }
37
}
38