src/Transport.php
public function unsetHandler($type, \fpoirotte\Pssht\HandlerInterface $handler)
    {
        if (!is_int($type) || $type < 0 || $type > 255) {
            throw new \InvalidArgumentException();
        }

        if (isset($this->handlers[$type]) && $this->handlers[$type] === $handler) {
            unset($this->handlers[$type]);
        }
        return $this;
    }
public function unsetHandler($type, \fpoirotte\Pssht\HandlerInterface $handler)
    {
        if (!is_int($type) || $type < 0 || $type > 255) {
            throw new \InvalidArgumentException();
        }

        if (isset($this->handlers[$type]) && $this->handlers[$type] === $handler) {
            unset($this->handlers[$type]);
        }
        return $this;
    }
public function unsetHandler ( $ type , \ fpoirotte \ Pssht \ HandlerInterface $ handler ) { if ( ! is_int ( $ type ) || $ type < 0 || $ type > 255 ) { throw new \ InvalidArgumentException ( ) ; } if ( isset ( $ this -> handlers [ $ type ] ) && $ this -> handlers [ $ type ] === $ handler ) { unset ( $ this -> handlers [ $ type ] ) ; } return $ this ; }
Unregister a handler for a specific SSH message type.

\param int $type
Message type.

\param fpoirotte::Pssht::HandlerInterface $handler
Handler to unregister for that message type.

\retval Transport
Returns this transport layer.
Unregister a handler for a specific SSH message type .