public function __wakeup() { parent::__wakeup(); $this->setVariablesMapper($this->serializationVariablesMapper); }
/** * Array of values for json serialization * @return array */ public function jsonSerialize() { return ArrayHelper::merge(parent::jsonSerialize(), ['name' => $this->name, 'type' => $this->type, 'value' => $this->value]); }