Dashboard   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 23
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
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