Churakovmike/laravel-db-doc-generator

View on GitHub
src/Traits/Configurable.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace ChurakovMike\DbDocumentor\Traits;

/**
 * Use this trait to configurate your object.
 *
 * Trait Configurable
 */
trait Configurable
{
    /**
     * @param array $config
     */
    public function loadConfig(array $config)
    {
        foreach ($config as $property => $value) {
            $this->$property = $value;
        }
    }
}