Dashboard::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 4
dl 0
loc 9
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Framework\Dashboard;
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 Dashboard extends Tag
13
{
14
    protected const DEFAULT_TAG = Html5::TAG_DIV;
15
16
    protected const CLASS_DASHBOARD = 'dashboard-container';
17
18
    /**
19
     * Dashboard constructor.
20
     *
21
     * @param array<string|INode>|string|INode|null $content
22
     * @param array                                 $intents
23
     * @param array<string,Attribute>|null          $attributes
24
     * @param string|null                           $tag
25
     */
26
    public function __construct(
27
        $content = null,
28
        array $intents = [],
29
        ?array $attributes = null,
30
        ?string $tag = null
31
    ) {
32
        parent::__construct($content, $intents, $attributes, $tag);
33
34
        $this->appendToClass(self::CLASS_DASHBOARD);
35
    }
36
}
37