Passed
Push — master ( 53dcee...da1c7b )
by Mike
05:24
created

ArrayHandlerFacade::handleArray()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
crap 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 1
    public function handleArray(FieldHandlerPluginInterface $handlerPlugin, array $payload, array $config): array
23
    {
24 1
        return $this->getFactory()
25 1
            ->createArrayHandler($handlerPlugin)
26 1
            ->handleArray($payload, $config);
27
    }
28
}