From 7979ef5376869bcf1ba0b3616240a8f8fa02b093 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Mon, 30 Aug 2021 15:10:15 +1000 Subject: [PATCH] Add a docblock --- src/JsonApi.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/JsonApi.php b/src/JsonApi.php index c04b100..a54baab 100644 --- a/src/JsonApi.php +++ b/src/JsonApi.php @@ -260,6 +260,9 @@ final class JsonApi implements RequestHandlerInterface return $this->basePath; } + /** + * Strip the API's base path from the start of the given path. + */ public function stripBasePath(string $path): string { $basePath = parse_url($this->basePath, PHP_URL_PATH);