12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <?php
- namespace yii\helpers;
- use yii\base\InvalidConfigException;
- class ReplaceArrayValue
- {
-
- public $value;
-
- public function __construct($value)
- {
- $this->value = $value;
- }
-
- public static function __set_state($state)
- {
- if (!isset($state['value'])) {
- throw new InvalidConfigException('Failed to instantiate class "Instance". Required parameter "id" is missing');
- }
- return new self($state['value']);
- }
- }
|