Пример #1
0
 /**
  * Returns the names of the modules defining mappings with the given
  * repository path.
  *
  * @param string|null $repositoryPath The repository path of the mapping.
  *
  * @return string[] The module names.
  *
  * @throws OutOfBoundsException If no path mapping was set for the
  *                              given repository path.
  */
 public function getModuleNames($repositoryPath = null)
 {
     return $this->map->getSecondaryKeys($repositoryPath);
 }
 /**
  * Returns the names of the packages defining types with the given name.
  *
  * @param string $typeName The name of the type.
  *
  * @return string[] The package names.
  *
  * @throws OutOfBoundsException If no type descriptor was set for the
  *                              given name.
  */
 public function getPackageNames($typeName = null)
 {
     return $this->map->getSecondaryKeys($typeName);
 }
 /**
  * @expectedException \OutOfBoundsException
  */
 public function testGetSecondaryKeysFailsIfUnknownPrimaryKey()
 {
     $this->map->getSecondaryKeys('foo');
 }