vendor/shopware/core/Framework/DataAbstractionLayer/Search/AggregationResult/Metric/MaxResult.php line 10

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