public function isSpeaking($id)
    {
        $ssrc = @$this->speakingStatus[$id];
        $user = $this->speakingStatus->get('user_id', $id);

        if (is_null($ssrc) && ! is_null($user)) {
            return $user->speaking;
        } elseif (is_null($user) && ! is_null($ssrc)) {
            return $user->speaking;
        } elseif (is_null($user) && is_null($ssrc)) {
            return $user->speaking;
        } else {
            return false;
        }
    }
public function isSpeaking($id)
    {
        $ssrc = @$this->speakingStatus[$id];
        $user = $this->speakingStatus->get('user_id', $id);

        if (is_null($ssrc) && ! is_null($user)) {
            return $user->speaking;
        } elseif (is_null($user) && ! is_null($ssrc)) {
            return $user->speaking;
        } elseif (is_null($user) && is_null($ssrc)) {
            return $user->speaking;
        } else {
            return false;
        }
    }
public function isSpeaking ( $ id ) { $ ssrc = @ $ this -> speakingStatus [ $ id ] ; $ user = $ this -> speakingStatus -> get ( 'user_id' , $ id ) ; if ( is_null ( $ ssrc ) && ! is_null ( $ user ) ) { return $ user -> speaking ; } elseif ( is_null ( $ user ) && ! is_null ( $ ssrc ) ) { return $ user -> speaking ; } elseif ( is_null ( $ user ) && is_null ( $ ssrc ) ) { return $ user -> speaking ; } else { return false ; } }
Checks if the user is speaking.

@param int $id Either the User ID or SSRC.

@return bool Whether the user is speaking.
Checks if the user is speaking .