public function toParty()
    {
        if (func_num_args() > 0) {
            $partyIds = is_array(func_get_arg(0)) ? func_get_arg(0) : func_get_args();

            $this->to['toparty'] = implode('|', $partyIds);
        }

        return $this;
    }
public function toParty()
    {
        if (func_num_args() > 0) {
            $partyIds = is_array(func_get_arg(0)) ? func_get_arg(0) : func_get_args();

            $this->to['toparty'] = implode('|', $partyIds);
        }

        return $this;
    }
public function toParty ( ) { if ( func_num_args ( ) > 0 ) { $ partyIds = is_array ( func_get_arg ( 0 ) ) ? func_get_arg ( 0 ) : func_get_args ( ) ; $ this -> to [ 'toparty' ] = implode ( '|' , $ partyIds ) ; } return $ this ; }
Message target party.

@return $this
Message target party .