From ec60970b5d2c52376a8b77ab1d42e20003192084 Mon Sep 17 00:00:00 2001 From: Christopher Vagnetoft Date: Sat, 28 Jan 2017 13:00:26 +0100 Subject: [PATCH] Added getContext method to shell --- lib/Shell.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/Shell.php b/lib/Shell.php index 847a4ec..768730c 100644 --- a/lib/Shell.php +++ b/lib/Shell.php @@ -90,6 +90,16 @@ class Shell } } + /** + * Return the current context + * + * @return Context The current context + */ + public function getContext() + { + return $this->context; + } + /** * Push a new primary context, saving the previous contexts on a stack. *