ArrayHandlerFacade   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 14
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A handleArray() 0 5 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Xervice\ArrayHandler\Business;
5
6
7
use Xervice\ArrayHandler\Dependency\FieldHandlerPluginInterface;
8
use Xervice\Core\Business\Model\Facade\AbstractFacade;
9
10
/**
11
 * @method \Xervice\ArrayHandler\Business\ArrayHandlerBusinessFactory getFactory()
12
 */
13
class ArrayHandlerFacade extends AbstractFacade
14
{
15
    /**
16
     * @param \Xervice\ArrayHandler\Dependency\FieldHandlerPluginInterface $handlerPlugin
17
     * @param array $payload
18
     * @param array $config
19
     *
20
     * @return array
21
     */
22 3
    public function handleArray(FieldHandlerPluginInterface $handlerPlugin, array $payload, array $config): array
23
    {
24 3
        return $this->getFactory()
25 3
            ->createArrayHandler($handlerPlugin)
26 3
            ->handleConfig($payload, $config);
27
    }
28
}