/** * Returns the path mapping for a repository path. * * @param string $repositoryPath The repository path. * * @return PathMapping The corresponding path mapping. * * @throws NoSuchPathMappingException If the repository path is not mapped. */ public function getPathMapping($repositoryPath) { if (!isset($this->pathMappings[$repositoryPath])) { throw NoSuchPathMappingException::forRepositoryPath($repositoryPath); } return $this->pathMappings[$repositoryPath]; }