PHP Trait M1\Vars\Traits\TransformerTrait

Since: 0.2.0
Afficher le fichier Open project: m1/Vars

Méthodes publiques

Méthode 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

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

Method Details

toDots() public méthode

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
Résultat array The dot notation array

toEnv() public méthode

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