public function register(TypeInterface $type)
    {
        if (isset($this->types[$name = $type->getName()])) {
            throw new \RuntimeException("Slide type '$name' is already registered.");
        }

        $this->types[$name] = $type;

        return $this;
    }