PHP Trait M1\Vars\Traits\TransformerTrait

Since: 0.2.0
Datei anzeigen Open project: m1/Vars

Public Methods

Method Description
toDots ( boolean $flatten_array = true ) : array Converts the array into a flat dot notation array
toEnv ( ) Makes it so the content is available in getenv()

Private Methods

Method Description
dotTransformer ( array $content, boolean $flatten_array, string $prefix = '' ) : array Converts the array into a flat dot notation array

Method Details

toDots() public method

Converts the array into a flat dot notation array
public toDots ( boolean $flatten_array = true ) : array
$flatten_array boolean Flatten arrays into none existent keys
return array The dot notation array

toEnv() public method

Makes it so the content is available in getenv()
public toEnv ( )