Skip to content

Commit

Permalink
Update Paths.php
Browse files Browse the repository at this point in the history
Hello, i just add a method if we want to remove one or many paths from the docs.
  • Loading branch information
abdounikarim committed Feb 24, 2021
1 parent 94863cd commit 1ef1f09
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/OpenApi/Model/Paths.php
Expand Up @@ -31,4 +31,9 @@ public function getPaths(): array
{
return $this->paths ?? [];
}

public function removePath(string $path)
{
unset($this->paths[$path]);
}
}

0 comments on commit 1ef1f09

Please sign in to comment.