src/Connection.php
public function getChannel($message)
    {
        if (is_int($message)) {
            return $this->channels[$message];
        }
        return $this->channels[$message->getChannel()];
    }
public function getChannel($message)
    {
        if (is_int($message)) {
            return $this->channels[$message];
        }
        return $this->channels[$message->getChannel()];
    }
public function getChannel ( $ message ) { if ( is_int ( $ message ) ) { return $ this -> channels [ $ message ] ; } return $ this -> channels [ $ message -> getChannel ( ) ] ; }
Retrieve the channel associated with a message.

\param int|fpoirotte::Pssht::Messages::CHANNEL::REQUEST::Base $message
Either a message or the message's channel identifier.

\retval int
Remote channel associated with the message.
Retrieve the channel associated with a message .