Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit 02824ae

Browse files
committed
Add setters for context and token
1 parent e1e002b commit 02824ae

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/GitDown.php

+10
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ public function __construct($token = null, $context = null)
1515
$this->context = $context;
1616
}
1717

18+
public function setToken($token)
19+
{
20+
$this->token = $token;
21+
}
22+
23+
public function setContext($token)
24+
{
25+
$this->context = $context;
26+
}
27+
1828
public function parse($content)
1929
{
2030
$response = Zttp::withHeaders([

0 commit comments

Comments
 (0)