Your IP : 127.0.0.1


Current Path : /home/dev2.destoffenstraat.com/vendor-1/magento/framework/Search/Response/Aggregation/
Upload File :
Current File : /home/dev2.destoffenstraat.com/vendor-1/magento/framework/Search/Response/Aggregation/Value.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Magento\Framework\Search\Response\Aggregation;

use Magento\Framework\Api\Search\AggregationValueInterface;

class Value implements AggregationValueInterface
{
    /**
     * @var string|array
     */
    private $value;

    /**
     * @var array
     */
    private $metrics;

    /**
     * @param string|array $value
     * @param array $metrics
     */
    public function __construct($value, $metrics)
    {
        $this->value = $value;
        $this->metrics = $metrics;
    }

    /**
     * {@inheritdoc}
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * {@inheritdoc}
     */
    public function getMetrics()
    {
        return $this->metrics;
    }
}