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

Open in your IDE?
  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 tag:v6.5.0
  7.  */
  8. #[Package('core')]
  9. class EntityAggregation extends Aggregation
  10. {
  11.     /**
  12.      * @var string
  13.      */
  14.     private $entity;
  15.     public function __construct(string $namestring $fieldstring $entity)
  16.     {
  17.         parent::__construct($name$field);
  18.         $this->entity $entity;
  19.     }
  20.     public function getEntity(): string
  21.     {
  22.         return $this->entity;
  23.     }
  24. }