Devise\Pages\Fields\FieldValue::override PHP Method

override() public method

Overrides this data with the new input array
public override ( array $input ) : void
$input array
return void
    public function override($input)
    {
        $old = (array) json_decode($this->json);
        foreach ($old as $key => $value) {
            unset($this->{$key});
        }
        $this->json = json_encode($input);
        $this->count = count($values);
        foreach ($input as $key => $value) {
            $this->{$key} = $value;
        }
    }