Skip to content

Commit

Permalink
[TASK] Add getter for all variables to projectnode
Browse files Browse the repository at this point in the history
  • Loading branch information
linawolf committed Jan 27, 2024
1 parent b80ed1c commit ab1a282
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/guides/src/Nodes/ProjectNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ public function setTitle(string $title): void
$this->title = $title;
}

/** @return array<string, Node> */
public function getVariables(): array
{
return $this->variables;
}

public function getVariable(string $name, Node|null $default): Node|null
{
return $this->variables[$name] ?? $default;
Expand Down

0 comments on commit ab1a282

Please sign in to comment.