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;
    }
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;
    }
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 ; }
Registers the slide type.

@param TypeInterface $type

@return $this
Registers the slide type .