Skip to content

Commit

Permalink
Merge pull request #88 from willrowe/patch-1
Browse files Browse the repository at this point in the history
Add `getName` method
  • Loading branch information
freekmurze authored Jan 13, 2025
2 parents 9a53116 + 81bc07e commit 580eddf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/TemporaryDirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ public function exists(): bool
return file_exists($this->getFullPath());
}

public function getName(): string
{
return $this->name;
}

protected function getFullPath(): string
{
return $this->location.(! empty($this->name) ? DIRECTORY_SEPARATOR.$this->name : '');
Expand Down

0 comments on commit 580eddf

Please sign in to comment.