public function dump($file, $content)
    {
        $fileWrited = file_put_contents($file, '<?php return ' . var_export($content, true) . ';');

        if ($fileWrited === false) {
            throw new \Exception('Unable to dump data into php file !');
        }
    }
public function dump($file, $content)
    {
        $fileWrited = file_put_contents($file, '<?php return ' . var_export($content, true) . ';');

        if ($fileWrited === false) {
            throw new \Exception('Unable to dump data into php file !');
        }
    }
public function dump ( $ file , $ content ) { $ fileWrited = file_put_contents ( $ file , '<?php return ' . var_export ( $ content , true ) . ';' ) ; if ( $ fileWrited === false ) { throw new \ Exception ( 'Unable to dump data into php file !' ) ; } }
Dump data into php file.

@param  string $file
@param  mixed  $content
@throws \Exception
Dump data into php file .