examples/whatsapp.php
private function connectToWhatsApp()
    {
        if (isset($this->wa)) {
            $this->wa->connect();
            $this->wa->loginWithPassword($this->password);

            return true;
        }

        return false;
    }
private function connectToWhatsApp()
    {
        if (isset($this->wa)) {
            $this->wa->connect();
            $this->wa->loginWithPassword($this->password);

            return true;
        }

        return false;
    }
private function connectToWhatsApp ( ) { if ( isset ( $ this -> wa ) ) { $ this -> wa -> connect ( ) ; $ this -> wa -> loginWithPassword ( $ this -> password ) ; return true ; } return false ; }
Connect to Whatsapp.

Create a connection to the whatsapp servers
using the supplied password.

@return bool
Connect to Whatsapp .