diff --git a/src/index.js b/src/index.js
index <HASH>..<HASH> 100644
--- a/src/index.js
+++ b/src/index.js
@@ -46,8 +46,8 @@ var defaultOptions = {
  * @varructor
  */
 var Writer = function(buffer, options = {}) {
-  options = Object.assign({}, defaultOptions, options);
-  this.ast = parser.parseCode(buffer, options);
+  this.options = Object.assign({}, defaultOptions, options);
+  this.ast = parser.parseCode(buffer, this.options);
 };
 editor(Writer, 1);
Save options globally

Save the main options globally to access from various functions and pass some of them to the php-parser library.