Your IP : 216.73.216.97


Current Path : /var/www/clients/client3/web2/web/vendor/magento/framework/Indexer/
Upload File :
Current File : /var/www/clients/client3/web2/web/vendor/magento/framework/Indexer/IndexTableRowSizeEstimator.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

namespace Magento\Framework\Indexer;

/**
 * Generic implementation for row size estimation.
 */
class IndexTableRowSizeEstimator implements IndexTableRowSizeEstimatorInterface
{
    /**
     * @var int
     */
    private $rowMemorySize;

    /**
     * @param int $rowMemorySize
     */
    public function __construct($rowMemorySize)
    {
        $this->rowMemorySize = $rowMemorySize;
    }

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