src/Transport.php
public function getHandler($type)
    {
        if (!is_int($type) || $type < 0 || $type > 255) {
            throw new \InvalidArgumentException();
        }

        if (isset($this->handlers[$type])) {
            return $this->handlers[$type];
        }
        return null;
    }
public function getHandler($type)
    {
        if (!is_int($type) || $type < 0 || $type > 255) {
            throw new \InvalidArgumentException();
        }

        if (isset($this->handlers[$type])) {
            return $this->handlers[$type];
        }
        return null;
    }
public function getHandler ( $ type ) { if ( ! is_int ( $ type ) || $ type < 0 || $ type > 255 ) { throw new \ InvalidArgumentException ( ) ; } if ( isset ( $ this -> handlers [ $ type ] ) ) { return $ this -> handlers [ $ type ] ; } return null ; }
Retrieve the current handler for a given message type.

\param int $type
Message type.

\retval fpoirotte::Pssht::HandlerInterface
Handler associated with the given message type.

\retval null
There is no handler currently registered
for the given message type.
Retrieve the current handler for a given message type .