Cell::getGroup()   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
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Framework\Grid\Cell;
6
7
use AbterPhp\Framework\Constant\Html5;
8
use AbterPhp\Framework\Html\Attribute;
9
use AbterPhp\Framework\Html\INode;
10
use AbterPhp\Framework\Html\Tag;
11
12
class Cell extends Tag implements ICell
13
{
14
    public const INTENT_ACTIONS = 'actions';
15
16
    public const GROUP_ACTIONS = 'actions';
17
18
    protected const DEFAULT_TAG = Html5::TAG_TD;
19
20
    protected string $group = '';
21
22
    /**
23
     * Cell constructor.
24
     *
25
     * @param INode[]|INode|string|null    $content
26
     * @param string                       $group
27
     * @param string[]                     $intents
28
     * @param array<string,Attribute>|null $attributes
29
     * @param string|null                  $tag
30
     */
31
    public function __construct(
32
        $content,
33
        string $group,
34
        array $intents = [],
35
        ?array $attributes = null,
36
        ?string $tag = null
37
    ) {
38
        parent::__construct($content, $intents, $attributes, $tag);
39
40
        $this->group = $group;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getGroup(): string
47
    {
48
        return $this->group;
49
    }
50
}
51