/** * Returns a type descriptor. * * @param string $typeName The name of the type. * @param string $packageName The name of the package containing the type. * * @return BindingTypeDescriptor The type descriptor. * * @throws OutOfBoundsException If no type descriptor was set for the * given name/package. */ public function get($typeName, $packageName) { return $this->map->get($typeName, $packageName); }
/** * Returns a type descriptor. * * @param string $typeName The name of the type. * @param string $moduleName The name of the module containing the type. * * @return BindingTypeDescriptor The type descriptor. * * @throws OutOfBoundsException If no type descriptor was set for the * given name/module. */ public function get($typeName, $moduleName) { return $this->map->get($typeName, $moduleName); }
/** * Returns a path mapping. * * @param string $repositoryPath The repository path of the mapping. * @param string $moduleName The module containing the mapping. * * @return PathMapping The path mapping. * * @throws OutOfBoundsException If no path mapping was set for the * given repository path/module. */ public function get($repositoryPath, $moduleName) { return $this->map->get($repositoryPath, $moduleName); }
/** * @expectedException \OutOfBoundsException */ public function testGetFailsIfKeysNotSet() { $this->map->get('foo', 'bar'); }