Devise\Pages\Fields\LiveFieldValue::__construct PHP Метод

__construct() публичный Метод

Create a new FieldValue object from json string
public __construct ( string $json, $fieldId, $type )
$json string
    public function __construct($json, $fieldId, $type)
    {
        $this->__ = new \StdClass();
        $this->__->json = $json;
        $this->__->id = $fieldId;
        $this->__->type = $type;
        $this->__->value = '';
        $this->__->values = (array) json_decode($this->__->json);
        $this->extract();
    }