Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make private methods in SearchApiResponse protected #851

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions modules/thunder_gqls/src/Wrappers/SearchApiResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public static function create(ContainerInterface $container): self {
* @param \Drupal\search_api\Query\QueryInterface $query
* The query.
*/
public function setQuery(QueryInterface $query): SearchApiResponse {
public function setQuery(QueryInterface $query): static {
$this->query = $query;
return $this;
}
Expand All @@ -91,7 +91,7 @@ public function setQuery(QueryInterface $query): SearchApiResponse {
* @param array $facetMapping
* The facet mapping.
*/
public function setFacetMapping(array $facetMapping): SearchApiResponse {
public function setFacetMapping(array $facetMapping): static {
$this->facetMapping = $facetMapping;
return $this;
}
Expand All @@ -102,7 +102,7 @@ public function setFacetMapping(array $facetMapping): SearchApiResponse {
* @param string $bundle
* The bundle.
*/
public function setBundle(string $bundle): SearchApiResponse {
public function setBundle(string $bundle): static {
$this->bundle = $bundle;
return $this;
}
Expand All @@ -113,7 +113,7 @@ public function setBundle(string $bundle): SearchApiResponse {
* @param array $facets
* The facets.
*/
public function setFacets(array $facets): SearchApiResponse {
public function setFacets(array $facets): static {
$this->facets = $facets;
return $this;
}
Expand Down Expand Up @@ -205,7 +205,7 @@ public function total(): int {
* @return array
* The processed facet results.
*/
private function processFacetResults(
protected function processFacetResults(
Facet $facet,
array $facetResults,
): array {
Expand Down Expand Up @@ -238,7 +238,7 @@ private function processFacetResults(
* @return array
* The processed facet results.
*/
private function processFacetResultsFromFieldConfig(
protected function processFacetResultsFromFieldConfig(
Facet $facet,
array $facetResults,
): array {
Expand Down
Loading