The data_set function sets a value within a nested array or object using "dot" notation:
<?php $data = ['products' => ['desk' => ['price' => 100]]];

data_set($data, 'products.desk.price', 200);
<?php         foreach ($values as $key => $value) {

            if (in_array(Utils::beforeFirstDot($key), $publicProperties)) {

                data_set($this, $key, $value);

            }

        }

    }
<?php                 continue;

            }



            data_set($this, $property, data_get($freshInstance, $property));

        }

    }
<?php             $value = $enum::from($value);

        }



        data_set($this->component, $this->levelName, $value);

    }



    protected function tryingToSetStringOrIntegerToEnum($subject)
<?php         foreach ($values as $key => $value) {

            if (in_array(Utils::beforeFirstDot($key), $publicProperties)) {

                data_set($this, $key, $value);

            }

        }

    }
<?php         $freshInstance = new static($this->getComponent(), $this->getPropertyName());



        foreach ($properties as $property) {

            data_set($this, $property, data_get($freshInstance, $property));

        }

    }
<?php                     $data = [];

                }



                data_set($data, $fieldKey, $this->filterCollectionDataDownToSpecificKeys($keyData, $ruleKeys, $fieldKeys));

            }

        }