ButtonComponent::outline()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Lagdo\UiBuilder\Component\Base;
4
5
use Lagdo\UiBuilder\Component\HtmlComponent;
6
7
class ButtonComponent extends HtmlComponent
8
{
9
    /**
10
     * @var string
11
     */
12
    public static string $tag = 'button';
13
14
    /**
15
     * @param string $icon
16
     *
17
     * @return static
18
     */
19
    public function addIcon(string $icon): static
0 ignored issues
show
Unused Code introduced by
The parameter $icon is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

19
    public function addIcon(/** @scrutinizer ignore-unused */ string $icon): static

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
20
    {
21
        return $this;
22
    }
23
24
    /**
25
     * @return static
26
     */
27
    public function primary(): static
28
    {
29
        return $this;
30
    }
31
32
    /**
33
     * @return static
34
     */
35
    public function secondary(): static
36
    {
37
        return $this;
38
    }
39
40
    /**
41
     * @return static
42
     */
43
    public function large(): static
44
    {
45
        return $this;
46
    }
47
48
    /**
49
     * @return static
50
     */
51
    public function small(): static
52
    {
53
        return $this;
54
    }
55
56
    /**
57
     * @return static
58
     */
59
    public function success(): static
60
    {
61
        return $this;
62
    }
63
64
    /**
65
     * @return static
66
     */
67
    public function info(): static
68
    {
69
        return $this;
70
    }
71
72
    /**
73
     * @return static
74
     */
75
    public function warning(): static
76
    {
77
        return $this;
78
    }
79
80
    /**
81
     * @return static
82
     */
83
    public function danger(): static
84
    {
85
        return $this;
86
    }
87
88
    /**
89
     * @return static
90
     */
91
    public function outline(): static
92
    {
93
        return $this;
94
    }
95
96
    /**
97
     * @return static
98
     */
99
    public function fullWidth(): static
100
    {
101
        return $this;
102
    }
103
}
104