function __construct($type_or_wrap_me_or_me, $subclass_name_or_free_me = null) { switch (func_num_args()) { case 1: $r = new_ESLevent($type_or_wrap_me_or_me); break; default: $r = new_ESLevent($type_or_wrap_me_or_me, $subclass_name_or_free_me); } $this->_cPtr = $r; }
function __construct($type_or_wrap_me_or_me, $subclass_name_or_free_me = null) { if (is_resource($type_or_wrap_me_or_me) && get_resource_type($type_or_wrap_me_or_me) === '_p_ESLevent') { $this->_cPtr = $type_or_wrap_me_or_me; return; } switch (func_num_args()) { case 1: $this->_cPtr = new_ESLevent($type_or_wrap_me_or_me); break; default: $this->_cPtr = new_ESLevent($type_or_wrap_me_or_me, $subclass_name_or_free_me); } }