Skip to content

Commit

Permalink
Merge pull request #781 from phpDocumentor/task/hasCurrentFileName
Browse files Browse the repository at this point in the history
[TASK] add hasCurrentFileName to RenderContext
  • Loading branch information
jaapio authored Dec 25, 2023
2 parents f90995f + fc22620 commit 50b8324
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/guides/src/RenderContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ public function getDirName(): string

return $dirname;
}

public function hasCurrentFileName(): bool
{
return $this->currentFileName !== null;
}

public function getCurrentFileName(): string
{
Expand Down

0 comments on commit 50b8324

Please sign in to comment.