public function getPathParams(string $path): array
    {
        $pathParams = [];

        // Build out the regex
        $pattern = implode("\/", $this->getPatternParts());

        if( preg_match("/^{$pattern}$/", $path, $parts) ){

            // Grab all but the first match, because that will always be the full string.
            foreach( array_slice($parts, 1, count($parts) - 1) as $i => $param ) {
                $pathParams[$this->namedPathParameters[$i]] = $param;
            }
            
        }

        return $pathParams;
    }