From a9a8558faab7e9193ee006a9dd7dca0a28173fe5 Mon Sep 17 00:00:00 2001 From: Pekka Laiho Date: Sun, 20 Dec 2020 16:36:48 +0700 Subject: [PATCH] add getEnv method to Lisp --- src/Lisp.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Lisp.php b/src/Lisp.php index 716fee7..8154ce9 100644 --- a/src/Lisp.php +++ b/src/Lisp.php @@ -24,6 +24,11 @@ class Lisp $this->env = $env; } + public function getEnv(): Env + { + return $this->env; + } + public function print($value, bool $printReadable): void { $this->printer->print($value, $printReadable);