Themsaid\Langman\Manager::writeFile PHP Method

writeFile() public method

Write a language file from array.
public writeFile ( string $filePath, array $translations ) : void
$filePath string
$translations array
return void
    public function writeFile($filePath, array $translations)
    {
        $content = "<?php \n\nreturn [";
        $content .= $this->stringLineMaker($translations);
        $content .= "\n];";
        file_put_contents($filePath, $content);
    }