LdapTools\Utilities\DialInData::toBinary PHP Method

toBinary() public method

Get the binary representation of the dial-in data for the userParameters value.
public toBinary ( ) : string
return string
    public function toBinary()
    {
        $binary = hex2bin(str_pad(dechex(MBString::ord($this->signature)), 2, 0, STR_PAD_LEFT));
        $binary .= hex2bin($this->dec2hex($this->userPrivilege));
        $binary .= hex2bin($this->callbackPhoneNumber);
        return $binary;
    }