vendor/shopware/core/Framework/DataAbstractionLayer/Search/Aggregation/Metric/EntityAggregation.php line 10

  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Framework\DataAbstractionLayer\Search\Aggregation\Metric;
  3. use Shopware\Core\Framework\DataAbstractionLayer\Search\Aggregation\Aggregation;
  4. use Shopware\Core\Framework\Log\Package;
  5. /**
  6.  * @final
  7.  */
  8. #[Package('core')]
  9. class EntityAggregation extends Aggregation
  10. {
  11.     public function __construct(
  12.         string $name,
  13.         string $field,
  14.         protected readonly string $entity
  15.     ) {
  16.         parent::__construct($name$field);
  17.     }
  18.     public function getEntity(): string
  19.     {
  20.         return $this->entity;
  21.     }
  22. }