Skip to content

Commit 723e1d4

Browse files
committed
change return signatures to allow for full ide autocompletion
1 parent a281d6f commit 723e1d4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/GridInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ interface GridInterface
1616
* Create the grid
1717
*
1818
* @param array $params
19-
* @return GridInterface
19+
* @return $this
2020
*/
21-
public function create(array $params): GridInterface;
21+
public function create(array $params): self;
2222

2323
/**
2424
* Initialize grid variables

src/RendersGrid.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ public function shouldRenderSearchForm(): bool
8686
/**
8787
* Define rendering of the search form
8888
*
89-
* @return GridInterface
89+
* @return $this
9090
*/
91-
public function withoutSearchForm(): GridInterface
91+
public function withoutSearchForm(): self
9292
{
9393
$this->shouldRenderSearchForm = false;
9494
return $this;
@@ -98,9 +98,9 @@ public function withoutSearchForm(): GridInterface
9898
* Define a custom layout/template to use when rendering the grid
9999
*
100100
* @param string $layout
101-
* @return GridInterface
101+
* @return $this
102102
*/
103-
public function withCustomTemplate(string $layout): GridInterface
103+
public function withCustomTemplate(string $layout): self
104104
{
105105
$this->templateToUseForRendering = $layout;
106106
return $this;
@@ -109,9 +109,9 @@ public function withCustomTemplate(string $layout): GridInterface
109109
/**
110110
* Define rendering of the filters
111111
*
112-
* @return GridInterface
112+
* @return $this
113113
*/
114-
public function withoutFilters(): GridInterface
114+
public function withoutFilters(): self
115115
{
116116
$this->shouldRenderFilters = false;
117117
return $this;

0 commit comments

Comments
 (0)