<?php
/**
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

namespace Travelpayouts\Vendor\Glook\YiiGrid\Helpers\Arrays;

use Exception;

class ReplaceArrayValue
{
    public $value;

    public function __construct($value)
    {
        $this->value = $value;
    }

    public static function __set_state($state)
    {
        if (!isset($state['value'])) {
            throw new Exception('Failed to instantiate class "ReplaceArrayValue". Required parameter "value" is missing');
        }

        return new self($state['value']);
    }
}
