BodyFactory::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 2
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<string,callable> $getters
14
     * @param Actions|null           $actions
15
     *
16
     * @return Body
17
     */
18
    public function create(
19
        array $getters,
20
        ?Actions $actions = null
21
    ): Body {
22
        return new Body($getters, $actions);
23
    }
24
}
25