@@ -33,6 +33,8 @@ public static function make(string $filterKey, string $filterPillTitle, string|a
33
33
34
34
/**
35
35
* Get the Filter Key
36
+ *
37
+ * @return string
36
38
*/
37
39
public function getFilterKey (): string
38
40
{
@@ -41,6 +43,8 @@ public function getFilterKey(): string
41
43
42
44
/**
43
45
* Get the title for the Filter Pill
46
+ *
47
+ * @return string
44
48
*/
45
49
public function getTitle (): string
46
50
{
@@ -59,6 +63,8 @@ public function getPillValue(): array|string|null
59
63
60
64
/**
61
65
* Determing if there is a Custom Pill blade set
66
+ *
67
+ * @return boolean
62
68
*/
63
69
public function getHasCustomPillBlade (): bool
64
70
{
@@ -67,6 +73,8 @@ public function getHasCustomPillBlade(): bool
67
73
68
74
/**
69
75
* Get The Custom Pill Blade (if set)
76
+ *
77
+ * @return string|null
70
78
*/
71
79
public function getCustomPillBlade (): ?string
72
80
{
@@ -85,6 +93,8 @@ public function getCustomResetButtonAttributes(): array
85
93
86
94
/**
87
95
* Determine of this is an External Livewire Filter
96
+ *
97
+ * @return integer
88
98
*/
89
99
public function getIsAnExternalLivewireFilter (): int
90
100
{
@@ -93,6 +103,8 @@ public function getIsAnExternalLivewireFilter(): int
93
103
94
104
/**
95
105
* Get the Separator for Pill Values
106
+ *
107
+ * @return string
96
108
*/
97
109
public function getSeparator (): string
98
110
{
@@ -101,6 +113,8 @@ public function getSeparator(): string
101
113
102
114
/**
103
115
* Determine if Pills should render as HTML
116
+ *
117
+ * @return integer
104
118
*/
105
119
public function shouldUsePillsAsHtml (): int
106
120
{
@@ -109,6 +123,8 @@ public function shouldUsePillsAsHtml(): int
109
123
110
124
/**
111
125
* Determine if Pill Title should render as HTML
126
+ *
127
+ * @return integer
112
128
*/
113
129
public function shouldUsePillsTitleAsHtml (): int
114
130
{
@@ -117,14 +133,18 @@ public function shouldUsePillsTitleAsHtml(): int
117
133
118
134
/**
119
135
* Determine if Should watch for Events (i.e. is an External Filter)
136
+ *
137
+ * @return integer
120
138
*/
121
- public function shouldWatchForEvents (): int
139
+ public function shouldWatchForEvents (): int
122
140
{
123
141
return intval ($ this ->watchForEvents );
124
142
}
125
143
126
144
/**
127
145
* Determine if Pill Value is an Array
146
+ *
147
+ * @return boolean
128
148
*/
129
149
public function isPillValueAnArray (): bool
130
150
{
@@ -133,6 +153,8 @@ public function isPillValueAnArray(): bool
133
153
134
154
/**
135
155
* Return the separator separated value for the pill
156
+ *
157
+ * @return string|null
136
158
*/
137
159
public function getSeparatedPillValue (): ?string
138
160
{
@@ -145,6 +167,8 @@ public function getSeparatedPillValue(): ?string
145
167
146
168
/**
147
169
* Return the safe, separator separated value for the pill
170
+ *
171
+ * @return string|null
148
172
*/
149
173
public function getSafeSeparatedPillValue (): ?string
150
174
{
@@ -224,6 +248,8 @@ public function getFilterTitleDisplayDataArray(array $array = []): array
224
248
/**
225
249
* Get the initial setup data
226
250
*
251
+ * @param string $filterKey
252
+ * @param boolean $shouldWatch
227
253
* @return array<mixed>
228
254
*/
229
255
public function getPillSetupData (string $ filterKey = '' , bool $ shouldWatch = false ): array
@@ -236,7 +262,8 @@ public function getPillSetupData(string $filterKey = '', bool $shouldWatch = fal
236
262
/**
237
263
* Calculate Any Reset Button Attributes
238
264
*
239
- * @param array<mixed> $filterPillsResetFilterButtonAttributes
265
+ * @param string $filterKey
266
+ * @param array<mixed> $filterPillsResetFilterButtonAttributes
240
267
* @return array<mixed>
241
268
*/
242
269
public function getCalculatedCustomResetButtonAttributes (string $ filterKey , array $ filterPillsResetFilterButtonAttributes ): array
0 commit comments