protected function getNestedResourceUri(array $segments, array $options): string
    {
        // We will spin through the segments and create a place-holder for each of the
        // resource segments, as well as the resource itself. Then we should get an
        // entire string for the resource URI that contains all nested resources.
        return \implode('/', \array_map(function ($s) use ($options) {
            $wildcard = $s;

            //If a wildcard for a resource has been set to be overridden
            if (isset($options['wildcards'][$s])) {
                $wildcard = $options['wildcards'][$s];
            }

            return $s . '/{' . $this->getResourceWildcard($wildcard) . '}';
        }, $segments));
    }
protected function getNestedResourceUri(array $segments, array $options): string
    {
        // We will spin through the segments and create a place-holder for each of the
        // resource segments, as well as the resource itself. Then we should get an
        // entire string for the resource URI that contains all nested resources.
        return \implode('/', \array_map(function ($s) use ($options) {
            $wildcard = $s;

            //If a wildcard for a resource has been set to be overridden
            if (isset($options['wildcards'][$s])) {
                $wildcard = $options['wildcards'][$s];
            }

            return $s . '/{' . $this->getResourceWildcard($wildcard) . '}';
        }, $segments));
    }
protected function getNestedResourceUri ( array $ segments , array $ options ) : string { // We will spin through the segments and create a place-holder for each of the // resource segments, as well as the resource itself. Then we should get an // entire string for the resource URI that contains all nested resources. return \ implode ( '/' , \ array_map ( function ( $ s ) use ( $ options ) { $ wildcard = $ s ; //If a wildcard for a resource has been set to be overridden if ( isset ( $ options [ 'wildcards' ] [ $ s ] ) ) { $ wildcard = $ options [ 'wildcards' ] [ $ s ] ; } return $ s . '/{' . $ this -> getResourceWildcard ( $ wildcard ) . '}' ; } , $ segments ) ) ; }
Get the URI for a nested resource segment array.

@param array $segments
@param array $options

@return string
Get the URI for a nested resource segment array .