File tree Expand file tree Collapse file tree 5 files changed +14
-17
lines changed
Expand file tree Collapse file tree 5 files changed +14
-17
lines changed Original file line number Diff line number Diff line change 2525 */
2626abstract class BaseParameters
2727{
28- /**
29- * @return string
30- */
3128 abstract public function getHTTPQuery (): string ;
3229
3330 /**
Original file line number Diff line number Diff line change @@ -40,8 +40,10 @@ public function getMeta(string $key)
4040
4141 /**
4242 * @param mixed $value
43+ *
44+ * @return $this
4345 */
44- public function addMeta (string $ key , $ value ): MetaParameters
46+ public function addMeta (string $ key , $ value )
4547 {
4648 $ this ->meta [$ key ] = $ value ;
4749
Original file line number Diff line number Diff line change @@ -37,8 +37,10 @@ public function getUserData(string $key)
3737
3838 /**
3939 * @param mixed $value
40+ *
41+ * @return $this
4042 */
41- public function addUserData (string $ key , $ value ): UserDataParameters
43+ public function addUserData (string $ key , $ value ): self
4244 {
4345 $ this ->userData [$ key ] = $ value ;
4446
Original file line number Diff line number Diff line change @@ -46,10 +46,7 @@ public function getRawJson()
4646 return json_encode ($ this ->data );
4747 }
4848
49- /**
50- * @return null|mixed
51- */
52- public function getMessage ()
49+ public function getMessage (): ?string
5350 {
5451 if ($ this ->failed ()) {
5552 return $ this ->data ->response ->message ;
@@ -58,10 +55,7 @@ public function getMessage()
5855 return null ;
5956 }
6057
61- /**
62- * @return null|mixed
63- */
64- public function getMessageKey ()
58+ public function getMessageKey (): ?string
6559 {
6660 if ($ this ->failed ()) {
6761 return $ this ->data ->response ->messageKey ;
@@ -71,9 +65,11 @@ public function getMessageKey()
7165 }
7266
7367 /**
74- * @return mixed
68+ * Return will be either 'SUCCESS' or 'FAILED' (nothing else).
69+ *
70+ * @see: https://docs.bigbluebutton.org/development/api/#api-calls
7571 */
76- public function getReturnCode ()
72+ public function getReturnCode (): string
7773 {
7874 return $ this ->data ->response ->returncode ;
7975 }
Original file line number Diff line number Diff line change @@ -357,11 +357,11 @@ protected function getJoinMeetingMock(array $params): JoinMeetingParameters
357357 ->setUserId ($ params ['userId ' ])
358358 ->setWebVoiceConf ($ params ['webVoiceConf ' ])
359359 ->setCreationTime ($ params ['creationTime ' ])
360- ->addUserData ('countrycode ' , $ params ['userdata_countrycode ' ])
361360 ->setRole ($ params ['role ' ])
361+ ->setExcludeFromDashboard ($ params ['excludeFromDashboard ' ])
362+ ->addUserData ('countrycode ' , $ params ['userdata_countrycode ' ])
362363 ->addUserData ('email ' , $ params ['userdata_email ' ])
363364 ->addUserData ('commercial ' , $ params ['userdata_commercial ' ])
364- ->setExcludeFromDashboard ($ params ['excludeFromDashboard ' ])
365365 ;
366366 }
367367
You can’t perform that action at this time.
0 commit comments