public function getType($name)
    {
        if (!isset($this->types[$name])) {
            throw new \OutOfBoundsException("No type registered for $name.");
        }

        return $this->types[$name];
    }