BodyFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
c 0
b 0
f 0
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 5 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<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