Link   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 18
ccs 0
cts 7
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setFieldsKeys() 0 7 1
A toArray() 0 4 1
1
<?php
2
3
namespace InertiaDashboardKit\Adapt\Columns;
4
5
class Link extends Column
6
{
7
    protected ?string $fieldText;
8
9
    public function toArray(): array
10
    {
11
        return array_merge(parent::toArray(), [
12
            'fieldText'      => $this->fieldText,
13
        ]);
14
    }
15
16
    public function setFieldsKeys(...$args): static
17
    {
18
        parent::setFieldsKeys(...$args);
19
20
        $this->fieldText      = $args[1] ?? null;
21
22
        return $this;
23
    }
24
}
25