ARow   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
eloc 9
c 0
b 0
f 0
dl 0
loc 41
ccs 10
cts 10
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setFunctionName() 0 4 1
A setFunctionArgs() 0 4 1
A getFunctionArgs() 0 3 1
A getFunctionName() 0 3 1
1
<?php
2
3
namespace kalanis\kw_table\core\Table\Rows;
4
5
6
/**
7
 * Class ARow
8
 * @package kalanis\kw_table\core\Table\Rows
9
 * Abstract class what can be added into the row
10
 */
11
abstract class ARow
12
{
13
    /** @var callable|string|array<string|object> */
14
    protected $functionName = '';
15
    /** @var array<int, mixed> */
16
    protected array $functionArgs = [];
17
18
    /**
19
     * @param callable|string|array<string|object> $functionName
20
     * @return $this
21
     */
22 5
    public function setFunctionName($functionName)
23
    {
24 5
        $this->functionName = $functionName;
25 5
        return $this;
26
    }
27
28
    /**
29
     * @param array<int, mixed> $functionArgs
30
     * @return $this
31
     */
32 5
    public function setFunctionArgs(array $functionArgs)
33
    {
34 5
        $this->functionArgs = $functionArgs;
35 5
        return $this;
36
    }
37
38
    /**
39
     * @return callable|string|array<string|object>
40
     */
41 5
    public function getFunctionName()
42
    {
43 5
        return $this->functionName;
44
    }
45
46
    /**
47
     * @return array<int, mixed>
48
     */
49 5
    public function getFunctionArgs()
50
    {
51 5
        return $this->functionArgs;
52
    }
53
}
54