public static function getPathSegment(int $index = 0)
    {
        $pathComponents = self::getPathSegments();
        return ArrayUtils::getArrayValueForKeyOrDefault($pathComponents, $index, false);
    }
public static function getPathSegment(int $index = 0)
    {
        $pathComponents = self::getPathSegments();
        return ArrayUtils::getArrayValueForKeyOrDefault($pathComponents, $index, false);
    }
public static function getPathSegment ( int $ index = 0 ) { $ pathComponents = self :: getPathSegments ( ) ; return ArrayUtils :: getArrayValueForKeyOrDefault ( $ pathComponents , $ index , false ) ; }
Get single path segment from the request-path.

@param int $index
Index of the path segment to get.

@return string Single path segment from the request-path.
Get single path segment from the request - path .