Skip to content

Commit ab1a282

Browse files
committed
[TASK] Add getter for all variables to projectnode
1 parent b80ed1c commit ab1a282

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/guides/src/Nodes/ProjectNode.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ public function setTitle(string $title): void
117117
$this->title = $title;
118118
}
119119

120+
/** @return array<string, Node> */
121+
public function getVariables(): array
122+
{
123+
return $this->variables;
124+
}
125+
120126
public function getVariable(string $name, Node|null $default): Node|null
121127
{
122128
return $this->variables[$name] ?? $default;

0 commit comments

Comments
 (0)