public function getChannelType()
    {
        switch ($this->type) {
            case self::TYPE_TEXT:
            case self::TYPE_VOICE:
                return $this->type;
                break;
            default:
                return self::TYPE_TEXT;
                break;
        }
    }
public function getChannelType()
    {
        switch ($this->type) {
            case self::TYPE_TEXT:
            case self::TYPE_VOICE:
                return $this->type;
                break;
            default:
                return self::TYPE_TEXT;
                break;
        }
    }
public function getChannelType ( ) { switch ( $ this -> type ) { case self :: TYPE_TEXT : case self :: TYPE_VOICE : return $ this -> type ; break ; default : return self :: TYPE_TEXT ; break ; } }
Returns the channel type.

@return string Either 'text' or 'voice'.
Returns the channel type .