Devise\Pages\Collections\CollectionFields::hydrate PHP Method

hydrate() protected method

Loop over the array of fields and assign each field's key as the key that we will use to access that field's values on this collection fields object.
protected hydrate ( Field $fields ) : void
$fields Field
return void
    protected function hydrate($fields)
    {
        foreach ($fields as $field) {
            $this->{$field->key} = $field->values;
        }
    }