1
0
mirror of https://github.com/danog/php-libtgvoip.git synced 2024-11-30 04:19:26 +01:00

Added missing parameters to PHP constructor

This commit is contained in:
Daniil Gentili 2017-06-23 00:29:39 +02:00
parent 124f2418d7
commit a65b634109

View File

@ -228,7 +228,9 @@ extern "C" {
// description of the class so that PHP knows which methods are accessible
Php::Class<VoIP> voip("VoIP");
voip.method<&VoIP::__construct> ("__construct", {
Php::ByVal("setStateCallable", Php::Type::Callable)
Php::ByVal("setStateCallable", Php::Type::Callable),
Php::ByVal("inputCallables", Php::Type::Array),
Php::ByVal("outputCallables", Php::Type::Array),
});
voip.method<&VoIP::setEncryptionKey> ("setEncryptionKey", {
Php::ByVal("key", Php::Type::String),