Skip to content

Commit b415ed7

Browse files
committed
[TASK] Add getter for Documents to RenderContext
1 parent 925b2ea commit b415ed7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/guides/src/RenderContext.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,17 @@ public function withDocument(DocumentNode $documentNode): self
8282
)->withIterator($this->getIterator());
8383
}
8484

85+
public function getDocument(): DocumentNode
86+
{
87+
return $this->document;
88+
}
89+
90+
/** @return DocumentNode[] */
91+
public function getAllDocuments(): array
92+
{
93+
return $this->allDocuments;
94+
}
95+
8596
public function withIterator(Renderer\DocumentListIterator $iterator): self
8697
{
8798
$that = clone $this;

0 commit comments

Comments
 (0)