| Total Complexity | 12 |
| Total Lines | 103 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 |
||
|
|
|||
| 20 | { |
||
| 21 | return $this; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return static |
||
| 26 | */ |
||
| 27 | public function addCaret(): static |
||
| 28 | { |
||
| 29 | return $this; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return static |
||
| 34 | */ |
||
| 35 | public function primary(): static |
||
| 36 | { |
||
| 37 | return $this; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return static |
||
| 42 | */ |
||
| 43 | public function secondary(): static |
||
| 44 | { |
||
| 45 | return $this; |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return static |
||
| 50 | */ |
||
| 51 | public function large(): static |
||
| 52 | { |
||
| 53 | return $this; |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return static |
||
| 58 | */ |
||
| 59 | public function small(): static |
||
| 60 | { |
||
| 61 | return $this; |
||
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return static |
||
| 66 | */ |
||
| 67 | public function success(): static |
||
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @return static |
||
| 74 | */ |
||
| 75 | public function info(): static |
||
| 76 | { |
||
| 77 | return $this; |
||
| 78 | } |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @return static |
||
| 82 | */ |
||
| 83 | public function warning(): static |
||
| 86 | } |
||
| 87 | |||
| 88 | /** |
||
| 89 | * @return static |
||
| 90 | */ |
||
| 91 | public function danger(): static |
||
| 92 | { |
||
| 93 | return $this; |
||
| 94 | } |
||
| 95 | |||
| 96 | /** |
||
| 97 | * @return static |
||
| 98 | */ |
||
| 99 | public function outline(): static |
||
| 100 | { |
||
| 101 | return $this; |
||
| 102 | } |
||
| 103 | |||
| 104 | /** |
||
| 105 | * @return static |
||
| 106 | */ |
||
| 107 | public function fullWidth(): static |
||
| 110 | } |
||
| 111 | } |
||
| 112 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.