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

BodyFactory::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
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