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

Open in your IDE?
  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 tag:v6.5.0
  7.  */
  8. #[Package('core')]
  9. class MaxResult extends AggregationResult
  10. {
  11.     /**
  12.      * @var string|float|int|null
  13.      */
  14.     protected $max;
  15.     /**
  16.      * @param string|float|int|null $max
  17.      */
  18.     public function __construct(string $name$max)
  19.     {
  20.         parent::__construct($name);
  21.         $this->max $max;
  22.     }
  23.     /**
  24.      * @return float|int|string|null
  25.      */
  26.     public function getMax()
  27.     {
  28.         return $this->max;
  29.     }
  30. }