ColumnHead::getLabel()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Itstructure\DetailView\Heads;
4
5
use Itstructure\DetailView\Traits\{Configurable, Attributable};
6
7
/**
8
 * Class ColumnHead
9
 * @package Itstructure\DetailView\Heads
10
 */
11
class ColumnHead
12
{
13
    use Configurable, Attributable;
14
15
    /**
16
     * @var string
17
     */
18
    protected $label;
19
20
    /**
21
     * ColumnHead constructor.
22
     * @param array $config
23
     */
24
    public function __construct(array $config)
25
    {
26
        $this->loadConfig($config);
27
    }
28
29
    /**
30
     * Get label for detail head.
31
     * @return string
32
     */
33
    public function getLabel(): string
34
    {
35
        return $this->label ?? '';
36
    }
37
}
38