public function save()
    {
        $file = $this->getFilename() . '.' . $this->getFileExtension();

        // Add save path if given
        if (null !== $this->savePath) {
            $file = $this->savePath . $file;
        }

        file_put_contents(
            $file,
            $this->getOutput()
        );
    }
public function save()
    {
        $file = $this->getFilename() . '.' . $this->getFileExtension();

        // Add save path if given
        if (null !== $this->savePath) {
            $file = $this->savePath . $file;
        }

        file_put_contents(
            $file,
            $this->getOutput()
        );
    }
public function save ( ) { $ file = $ this -> getFilename ( ) . '.' . $ this -> getFileExtension ( ) ; // Add save path if given if ( null !== $ this -> savePath ) { $ file = $ this -> savePath . $ file ; } file_put_contents ( $ file , $ this -> getOutput ( ) ) ; }
Save to a file

@return void
Save to a file