/**
* TypeMap constructor.
*
* @param string $namespace
* @param array $types
*/
public function __construct($namespace, array $types)
{
$this->namespace = Normalizer::normalizeNamespace($namespace);
foreach ($types as $type => $properties) {
$this->types[] = new Type($namespace, $type, $properties);
}
}