vendor/shopware/core/Framework/DataAbstractionLayer/Search/Aggregation/Metric/EntityAggregation.php line 10
<?php declare(strict_types=1);
namespace Shopware\Core\Framework\DataAbstractionLayer\Search\Aggregation\Metric;
use Shopware\Core\Framework\DataAbstractionLayer\Search\Aggregation\Aggregation;
use Shopware\Core\Framework\Log\Package;
/**
* @final
*/
#[Package('core')]
class EntityAggregation extends Aggregation
{
public function __construct(
string $name,
string $field,
protected readonly string $entity
) {
parent::__construct($name, $field);
}
public function getEntity(): string
{
return $this->entity;
}
}