Test Failed
Push — master ( e97986...2933e0 )
by Bruno
19:41 queued 09:43
created

Badge::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 7
rs 10
cc 1
nc 1
nop 2
1
<?php declare(strict_types=1);
2
3
namespace Formularium\Frontend\Vuetify\Element;
4
5
use Formularium\Element;
6
use Formularium\HTMLNode;
7
use Formularium\Frontend\HTML\Element\Badge as HTMLBadge;
8
use Formularium\Metadata;
9
10
class Badge extends VuetifyElement
11
{
12
    public function render(array $parameters, HTMLNode $previous): HTMLNode
13
    {
14
        $previous->setTag('v-badge');
15
        
16
        $this->color($parameters, $previous);
17
18
        return $previous;
19
    }
20
21
    public static function getMetadata(): Metadata
22
    {
23
        $metadata = HTMLBadge::getMetadata();
24
        return $metadata;
25
    }
26
}
27