ARow::setFunctionArgs()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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