Passed
Push — main ( 60225c...3222f2 )
by Thierry
02:16
created

BadgeElement   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 6
c 1
b 0
f 0
dl 0
loc 43
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A border() 0 3 1
A rounded() 0 3 1
A top() 0 3 1
A type() 0 3 1
1
<?php
2
3
namespace Lagdo\UiBuilder\Element\Html;
4
5
use Lagdo\UiBuilder\Builder\Html\Element;
6
use Lagdo\UiBuilder\Element\BadgeInterface;
7
8
class BadgeElement extends Element implements BadgeInterface
9
{
10
    /**
11
     * @var string
12
     */
13
    public static string $tag = 'span';
14
15
    /**
16
     * @return static
17
     */
18
    public function top(): static
19
    {
20
        return $this;
21
    }
22
23
    /**
24
     * @param string $type
25
     *
26
     * @return static
27
     */
28
    public function type(string $type): static
29
    {
30
        return $this;
31
    }
32
33
    /**
34
     * @param string $rounded
35
     *
36
     * @return static
37
     */
38
    public function rounded(string $rounded): static
39
    {
40
        return $this;
41
    }
42
43
    /**
44
     * @param string $border
45
     *
46
     * @return static
47
     */
48
    public function border(string $border): static
49
    {
50
        return $this;
51
    }
52
}
53