Passed
Pull Request — master (#213)
by Ruslan
18:45
created

DynamicEntityDependencyProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 5
dl 0
loc 19
c 1
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDynamicEntityPostCreatePlugins() 0 4 1
A getDynamicEntityPostUpdatePlugins() 0 4 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
namespace Pyz\Zed\DynamicEntity;
9
10
use Spryker\Zed\Availability\Communication\Plugin\DynamicEntity\AvailabilityDynamicEntityPostCreatePlugin;
11
use Spryker\Zed\Availability\Communication\Plugin\DynamicEntity\AvailabilityDynamicEntityPostUpdatePlugin;
12
use Spryker\Zed\DynamicEntity\DynamicEntityDependencyProvider as SprykerDynamicEntityDependencyProvider;
13
14
class DynamicEntityDependencyProvider extends SprykerDynamicEntityDependencyProvider
15
{
16
    /**
17
     * @return array<\Spryker\Zed\DynamicEntityExtension\Dependency\Plugin\DynamicEntityPostUpdatePluginInterface>
18
     */
19
    protected function getDynamicEntityPostUpdatePlugins(): array
20
    {
21
        return [
22
            new AvailabilityDynamicEntityPostUpdatePlugin(),
23
        ];
24
    }
25
26
    /**
27
     * @return array<\Spryker\Zed\DynamicEntityExtension\Dependency\Plugin\DynamicEntityPostCreatePluginInterface>
28
     */
29
    protected function getDynamicEntityPostCreatePlugins(): array
30
    {
31
        return [
32
            new AvailabilityDynamicEntityPostCreatePlugin(),
33
        ];
34
    }
35
}
36