Determines the fitness of the provided path.
string $path: The path whose fitness we want.
int The fitness of the path, as an integer.
public function getFit($path) {
$fit = 0;
$parts = explode('/', $path, static::MAX_PARTS);
foreach ($parts as $k => $part) {
if (strpos($part, '{') === FALSE) {
$fit |= 1 << $slashes - $k;
}
}
return $fit;
}