From 02824ae1d8970dd9439b87378998d597080e94cf Mon Sep 17 00:00:00 2001 From: Caleb Porzio Date: Wed, 6 Mar 2019 02:11:52 -0500 Subject: [PATCH] Add setters for context and token --- src/GitDown.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/GitDown.php b/src/GitDown.php index c5da2c0..3721a1f 100644 --- a/src/GitDown.php +++ b/src/GitDown.php @@ -15,6 +15,16 @@ public function __construct($token = null, $context = null) $this->context = $context; } + public function setToken($token) + { + $this->token = $token; + } + + public function setContext($token) + { + $this->context = $context; + } + public function parse($content) { $response = Zttp::withHeaders([