/**
* @param string $routeKey route key regex
*
* @return string sample URI path
*/
public function get(string
$routeKey): string
{ $sampleUri =
$routeKey;
foreach ($this->routes->
getPlaceholders() as $placeholder =>
$regex) { $sample =
$this->samples
[$placeholder] ?? '::unknown::';
$sampleUri =
str_replace('(' .
$regex . ')',
$sample,
$sampleUri);
} // auto route
return str_replace('[/...]', '/1/2/3/4/5',
$sampleUri);
}}