Passed
Push — master ( f4f732...1f6557 )
by Bruno
06:02
created

Spinner   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 18
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A render() 0 6 1
A getMetadata() 0 6 1
1
<?php declare(strict_types=1);
2
3
namespace Formularium\Frontend\Bootstrapvue\Element;
4
5
use Formularium\Element;
6
use Formularium\HTMLNode;
7
use Formularium\Metadata;
8
use Formularium\MetadataParameter;
9
use Formularium\Frontend\HTML\Framework;
10
11
class Spinner extends Element
12
{
13
    public function render(array $parameters, HTMLNode $previous): HTMLNode
14
    {
15
        return HTMLNode::factory(
16
            'b-spinner',
17
            [
18
                'label' => 'Loading...'
19
            ]
20
        );
21
    }
22
23
    public static function getMetadata(): Metadata
24
    {
25
        return new Metadata(
26
            'Spinner',
27
            'Creates a spinner',
28
            [
29
            ]
30
        );
31
    }
32
}
33