Skip to content

Commit fad5d53

Browse files
committed
Tweak
1 parent 523d5a5 commit fad5d53

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

src/Features/Filters/Traits/Helpers/FilterHelpers.php

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
namespace Rappasoft\LaravelLivewireTables\Features\Filters\Traits\Helpers;
44

55
use Livewire\Attributes\Computed;
6-
use Rappasoft\LaravelLivewireTables\Collections\FilterCollection;
76
use Rappasoft\LaravelLivewireTables\Features\Filters\Views\Filter;
7+
use Rappasoft\LaravelLivewireTables\Collections\FilterCollection;
88

99
trait FilterHelpers
1010
{
1111
/**
1212
* Undocumented function
13+
*
14+
* @return boolean
1315
*/
1416
public function hasFilters(): bool
1517
{
@@ -32,18 +34,24 @@ public function getFilters(): FilterCollection
3234

3335
/**
3436
* Undocumented function
37+
*
38+
* @return integer
3539
*/
3640
public function getFiltersCount(): int
3741
{
3842
if (! isset($this->filterConfiguration['filterCount'])) {
3943
$this->filterConfiguration['filterCount'] = $this->getFilters()->count();
4044
}
4145

46+
4247
return $this->filterConfiguration['filterCount'];
4348
}
4449

4550
/**
4651
* Undocumented function
52+
*
53+
* @param string $key
54+
* @return mixed
4755
*/
4856
public function getFilterByKey(string $key): mixed
4957
{
@@ -70,6 +78,8 @@ public function getAppliedFilters(): array
7078

7179
/**
7280
* Undocumented function
81+
*
82+
* @return boolean
7383
*/
7484
public function hasAppliedFiltersWithValues(): bool
7585
{
@@ -78,6 +88,8 @@ public function hasAppliedFiltersWithValues(): bool
7888

7989
/**
8090
* Undocumented function
91+
*
92+
* @return boolean
8193
*/
8294
public function hasAppliedVisibleFiltersWithValuesThatCanBeCleared(): bool
8395
{
@@ -89,6 +101,8 @@ public function hasAppliedVisibleFiltersWithValuesThatCanBeCleared(): bool
89101

90102
/**
91103
* Undocumented function
104+
*
105+
* @return integer
92106
*/
93107
public function getFilterBadgeCount(): int
94108
{
@@ -115,6 +129,9 @@ public function getAppliedFiltersWithValues(): array
115129

116130
/**
117131
* Undocumented function
132+
*
133+
* @param string $filterKey
134+
* @return mixed
118135
*/
119136
public function getAppliedFilterWithValue(string $filterKey): mixed
120137
{
@@ -123,6 +140,8 @@ public function getAppliedFilterWithValue(string $filterKey): mixed
123140

124141
/**
125142
* Undocumented function
143+
*
144+
* @return integer
126145
*/
127146
public function getAppliedFiltersWithValuesCount(): int
128147
{

0 commit comments

Comments
 (0)