Passed
Push — master ( f85738...3d85c1 )
by Peter
04:52
created

BodyFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Admin\Grid\Factory\Table;
6
7
use AbterPhp\Framework\Grid\Component\Actions;
8
use AbterPhp\Framework\Grid\Component\Body;
9
10
class BodyFactory
11
{
12
    /**
13
     * @param array        $getters
14
     * @param array        $rowArguments
15
     * @param Actions|null $rowActions
16
     *
17
     * @return Body
18
     */
19
    public function create(
20
        array $getters,
21
        array $rowArguments,
22
        ?Actions $rowActions
23
    ): Body {
24
        $body = new Body($getters, $rowArguments, $rowActions);
25
26
        return $body;
27
    }
28
}
29