Skip to content

Commit 54f1232

Browse files
DataSource: change getDataSource to public
1 parent 1912803 commit 54f1232

6 files changed

+6
-6
lines changed

src/DataSource/DibiFluentDataSource.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ protected function applyFilterSelect(FilterSelect $filter): void
219219
$this->dataSource->where($filter->getCondition());
220220
}
221221

222-
protected function getDataSource(): Fluent
222+
public function getDataSource(): Fluent
223223
{
224224
return $this->dataSource;
225225
}

src/DataSource/DoctrineDataSource.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ protected function applyFilterSelect(FilterSelect $filter): void
306306
}
307307
}
308308

309-
protected function getDataSource(): QueryBuilder
309+
public function getDataSource(): QueryBuilder
310310
{
311311
return $this->dataSource;
312312
}

src/DataSource/ElasticsearchDataSource.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function sort(Sorting $sorting): IDataSource
183183
return $this;
184184
}
185185

186-
protected function getDataSource(): SearchParamsBuilder
186+
public function getDataSource(): SearchParamsBuilder
187187
{
188188
return $this->searchParamsBuilder;
189189
}

src/DataSource/FilterableDataSource.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function filter(array $filters): void
5050
}
5151
}
5252

53-
abstract protected function getDataSource(): mixed;
53+
abstract public function getDataSource(): mixed;
5454

5555
abstract protected function applyFilterDate(FilterDate $filter): void;
5656

src/DataSource/NetteDatabaseTableDataSource.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ protected function applyFilterSelect(FilterSelect $filter): void
263263
$this->dataSource->where($filter->getCondition());
264264
}
265265

266-
protected function getDataSource(): Selection
266+
public function getDataSource(): Selection
267267
{
268268
return $this->dataSource;
269269
}

src/DataSource/NextrasDataSource.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ protected function applyFilterSelect(FilterSelect $filter): void
226226
);
227227
}
228228

229-
protected function getDataSource(): ICollection
229+
public function getDataSource(): ICollection
230230
{
231231
return $this->dataSource;
232232
}

0 commit comments

Comments
 (0)