diff --git a/src/Result/Result.php b/src/Result/Result.php index 60bca66..b765867 100644 --- a/src/Result/Result.php +++ b/src/Result/Result.php @@ -3,6 +3,7 @@ namespace Drupal\facets\Result; use Drupal\Core\Url; +use Drupal\facets\FacetInterface; /** * The default implementation of the result interfaces. @@ -70,7 +71,7 @@ class Result implements ResultInterface { * @param int|null $count * The amount of items or NULL. */ - public function __construct($facet, $raw_value, $display_value, $count) { + public function __construct(FacetInterface $facet, $raw_value, $display_value, $count) { $this->facet = $facet; $this->rawValue = $raw_value; $this->displayValue = $display_value;