code: protected function saveToFile($data, $file)
      {
          file_put_contents($file, "<?php\nreturn " . VarDumper::export($data) . ";\n", LOCK_EX);
          $this->invalidateScriptCache($file);
      }
docs: Saves the authorization data to a PHP script file.
  
  @param array $data the authorization data
  @param string $file the file path.
  @see loadFromFile()