private function getRegistrationClient($number)
    {
        $file = $this->customPath ? $this->customPath . '/phone-id-' . $number . '.dat' : null;
        $registration = new Registration($number, $this->debug, $file);

        $this->listener->registerRegistrationEvents($registration);
        
        return $registration;
    }
private function getRegistrationClient($number)
    {
        $file = $this->customPath ? $this->customPath . '/phone-id-' . $number . '.dat' : null;
        $registration = new Registration($number, $this->debug, $file);

        $this->listener->registerRegistrationEvents($registration);
        
        return $registration;
    }
private function getRegistrationClient ( $ number ) { $ file = $ this -> customPath ? $ this -> customPath . '/phone-id-' . $ number . '.dat' : null ; $ registration = new Registration ( $ number , $ this -> debug , $ file ) ; $ this -> listener -> registerRegistrationEvents ( $ registration ) ; return $ registration ; }
Get WhatsProt instance for given number

@param  string $number
@return \Registration
Get WhatsProt instance for given number