Zend\Stratigility\Next::getBorder PHP Метод

getBorder() приватный Метод

Determine the border between the request path and current route
private getBorder ( string $path, string $route ) : string
$path string
$route string
Результат string
    private function getBorder($path, $route)
    {
        if ($route === '/') {
            return '/';
        }
        $routeLength = strlen($route);
        return strlen($path) > $routeLength ? $path[$routeLength] : '';
    }