File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class Hook
2727{
2828 protected \SimpleXMLElement $ rawXml ;
2929
30- private int $ hookId ;
30+ private string $ hookId ;
3131
3232 private string $ meetingId ;
3333
@@ -40,14 +40,14 @@ class Hook
4040 public function __construct (\SimpleXMLElement $ xml )
4141 {
4242 $ this ->rawXml = $ xml ;
43- $ this ->hookId = ( int ) $ xml ->hookID ->__toString ();
43+ $ this ->hookId = $ xml ->hookID ->__toString ();
4444 $ this ->callbackUrl = $ xml ->callbackURL ->__toString ();
4545 $ this ->meetingId = $ xml ->meetingID ->__toString ();
4646 $ this ->permanentHook = 'true ' === $ xml ->permanentHook ->__toString ();
4747 $ this ->rawData = 'true ' === $ xml ->rawData ->__toString ();
4848 }
4949
50- public function getHookId (): int
50+ public function getHookId (): string
5151 {
5252 return $ this ->hookId ;
5353 }
Original file line number Diff line number Diff line change 2222
2323class HooksDestroyParameters extends BaseParameters
2424{
25- private int $ hookId ;
25+ private string $ hookId ;
2626
27- public function __construct (int $ hookId )
27+ public function __construct (string $ hookId )
2828 {
2929 $ this ->hookId = $ hookId ;
3030 }
3131
32- public function getHookId (): int
32+ public function getHookId (): string
3333 {
3434 return $ this ->hookId ;
3535 }
3636
37- public function setHookId (int $ hookId ): self
37+ public function setHookId (string $ hookId ): self
3838 {
3939 $ this ->hookId = $ hookId ;
4040
Original file line number Diff line number Diff line change @@ -34,13 +34,13 @@ class HooksCreateResponse extends BaseResponse
3434 *
3535 * @see https://docs.bigbluebutton.org/development/webhooks/#hooksdestroy
3636 */
37- public function getHookId (): ?int
37+ public function getHookId (): ?string
3838 {
3939 if (!$ this ->rawXml ->hookID ) {
4040 return null ;
4141 }
4242
43- return ( int ) $ this ->rawXml ->hookID ->__toString ();
43+ return $ this ->rawXml ->hookID ->__toString ();
4444 }
4545
4646 public function isPermanentHook (): ?bool
You can’t perform that action at this time.
0 commit comments