-
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
28 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,9 +16,8 @@ | |
use Symfony\Component\HttpFoundation\ParameterBag; | ||
|
||
/** | ||
* DataTableState. | ||
* | ||
* @author Robbert Beesems <[email protected]> | ||
* @phpstan-type SearchColumn array{column: AbstractColumn, search: string, regex: bool} | ||
* @phpstan-type OrderColumn array{AbstractColumn, string} | ||
*/ | ||
final class DataTableState | ||
{ | ||
|
@@ -29,10 +28,10 @@ final class DataTableState | |
private ?int $length = null; | ||
private string $globalSearch = ''; | ||
|
||
/** @var array{column: AbstractColumn, search: string, regex: bool}[] */ | ||
/** @var SearchColumn[] */ | ||
private array $searchColumns = []; | ||
|
||
/** @var array{AbstractColumn, string}[] */ | ||
/** @var OrderColumn[] */ | ||
private array $orderBy = []; | ||
|
||
private bool $isInitial = false; | ||
|
@@ -185,15 +184,15 @@ public function addOrderBy(AbstractColumn $column, string $direction = DataTable | |
} | ||
|
||
/** | ||
* @return array{AbstractColumn, string}[] | ||
* @return OrderColumn[] | ||
*/ | ||
public function getOrderBy(): array | ||
{ | ||
return $this->orderBy; | ||
} | ||
|
||
/** | ||
* @param array{AbstractColumn, string}[] $orderBy | ||
* @param OrderColumn[] $orderBy | ||
*/ | ||
public function setOrderBy(array $orderBy = []): static | ||
{ | ||
|
@@ -205,7 +204,7 @@ public function setOrderBy(array $orderBy = []): static | |
/** | ||
* Returns an array of column-level searches. | ||
* | ||
* @return array{column: AbstractColumn, search: string, regex: bool}[] | ||
* @return SearchColumn[] | ||
*/ | ||
public function getSearchColumns(): array | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Internal deprecations | ||
%Passing a negative value to the.*setStart% | ||
%with a length less than 1 is deprecated% | ||
|
||
# Elastica | ||
%Passing a array of strings as 1st argument% | ||
|