33namespace Rappasoft \LaravelLivewireTables \Features \Filters \Traits \Helpers ;
44
55use Livewire \Attributes \Computed ;
6- use Rappasoft \LaravelLivewireTables \Features \Filters \Views \Filter ;
76use Rappasoft \LaravelLivewireTables \Collections \FilterCollection ;
7+ use Rappasoft \LaravelLivewireTables \Features \Filters \Views \Filter ;
88
99trait FilterHelpers
1010{
1111 /**
1212 * Undocumented function
13- *
14- * @return boolean
1513 */
1614 public function hasFilters (): bool
1715 {
@@ -34,24 +32,18 @@ public function getFilters(): FilterCollection
3432
3533 /**
3634 * Undocumented function
37- *
38- * @return integer
3935 */
4036 public function getFiltersCount (): int
4137 {
4238 if (! isset ($ this ->filterConfiguration ['filterCount ' ])) {
4339 $ this ->filterConfiguration ['filterCount ' ] = $ this ->getFilters ()->count ();
4440 }
4541
46-
4742 return $ this ->filterConfiguration ['filterCount ' ];
4843 }
4944
5045 /**
5146 * Undocumented function
52- *
53- * @param string $key
54- * @return mixed
5547 */
5648 public function getFilterByKey (string $ key ): mixed
5749 {
@@ -78,8 +70,6 @@ public function getAppliedFilters(): array
7870
7971 /**
8072 * Undocumented function
81- *
82- * @return boolean
8373 */
8474 public function hasAppliedFiltersWithValues (): bool
8575 {
@@ -88,8 +78,6 @@ public function hasAppliedFiltersWithValues(): bool
8878
8979 /**
9080 * Undocumented function
91- *
92- * @return boolean
9381 */
9482 public function hasAppliedVisibleFiltersWithValuesThatCanBeCleared (): bool
9583 {
@@ -101,8 +89,6 @@ public function hasAppliedVisibleFiltersWithValuesThatCanBeCleared(): bool
10189
10290 /**
10391 * Undocumented function
104- *
105- * @return integer
10692 */
10793 public function getFilterBadgeCount (): int
10894 {
@@ -129,9 +115,6 @@ public function getAppliedFiltersWithValues(): array
129115
130116 /**
131117 * Undocumented function
132- *
133- * @param string $filterKey
134- * @return mixed
135118 */
136119 public function getAppliedFilterWithValue (string $ filterKey ): mixed
137120 {
@@ -140,8 +123,6 @@ public function getAppliedFilterWithValue(string $filterKey): mixed
140123
141124 /**
142125 * Undocumented function
143- *
144- * @return integer
145126 */
146127 public function getAppliedFiltersWithValuesCount (): int
147128 {
0 commit comments