@@ -61,7 +61,9 @@ public function __construct($apiKey, $apiSecret, $options = array())
6161 }
6262
6363 /**
64- * Creates a token for connecting to an OpenTok session. In order to authenticate a user
64+ * Creates a token for connecting to an OpenTok session.
65+ *
66+ * In order to authenticate a user
6567 * connecting to an OpenTok session, the client passes a token when connecting to the session.
6668 * <p>
6769 * For testing, you generate tokens or by logging in to your
@@ -168,23 +170,23 @@ public function generateToken($sessionId, $options = array())
168170 * will use to situate the session in its global network. If you do not set a location hint,
169171 * the OpenTok servers will be based on the first client connecting to the session.</li>
170172 *
171- * <li><code>'mediaMode'</code> (MediaMode) — Whether the session will transmit
172- * streams using the OpenTok Media Router (<code>MediaMode.ROUTED</code>) or not
173- * (<code>MediaMode.RELAYED</code>). By default, the <code>mediaMode</code> property
174- * is set to <code>MediaMode.RELAYED</code>.
173+ * <li><code>'mediaMode'</code> (MediaMode) — Whether the session will transmit
174+ * streams using the OpenTok Media Router (<code>MediaMode.ROUTED</code>) or not
175+ * (<code>MediaMode.RELAYED</code>). By default, the <code>mediaMode</code> property
176+ * is set to <code>MediaMode.RELAYED</code>.
175177 *
176- * <p>
177- * With the <code>mediaMode</code> parameter set to <code>MediaMode.RELAYED</code>, the
178- * session will attempt to transmit streams directly between clients. If clients cannot
179- * connect due to firewall restrictions, the session uses the OpenTok TURN server to relay
180- * audio-video streams.
178+ * <p>
179+ * With the <code>mediaMode</code> parameter set to <code>MediaMode.RELAYED</code>, the
180+ * session will attempt to transmit streams directly between clients. If clients cannot
181+ * connect due to firewall restrictions, the session uses the OpenTok TURN server to relay
182+ * audio-video streams.
181183 *
182- * <p>
183- * The
184- * <a href="https://tokbox.com/opentok/tutorials/create-session/#media-mode" target="_top">
185- * OpenTok Media Router</a> provides the following benefits:
184+ * <p>
185+ * The
186+ * <a href="https://tokbox.com/opentok/tutorials/create-session/#media-mode" target="_top">
187+ * OpenTok Media Router</a> provides the following benefits:
186188 *
187- * <ul>
189+ * <ul>
188190 * <li>The OpenTok Media Router can decrease bandwidth usage in multiparty sessions.
189191 * (When the <code>mediaMode</code> parameter is set to <code>MediaMode.ROUTED</code>,
190192 * each client must send a separate audio-video stream to each client subscribing to
@@ -197,7 +199,7 @@ public function generateToken($sessionId, $options = array())
197199 * <li>The OpenTok Media Router supports the
198200 * <a href="https://tokbox.com/opentok/tutorials/archiving" target="_top">archiving</a>
199201 * feature, which lets you record, save, and retrieve OpenTok sessions.</li>
200- * </ul>
202+ * </ul>
201203 *
202204 * </ul>
203205 *
@@ -304,7 +306,7 @@ public function createSession($options = array())
304306 * archive are recorded to a single file (<code>OutputMode::COMPOSED</code>, the default)
305307 * or to individual files (<code>OutputMode::INDIVIDUAL</code>).</li>
306308 *
307- * <ul>
309+ * </ ul>
308310 *
309311 * @return Archive The Archive object, which includes properties defining the archive, including
310312 * the archive ID.
@@ -415,7 +417,9 @@ public function deleteArchive($archiveId)
415417 }
416418
417419 /**
418- * Returns an ArchiveList. The <code>items()</code> method of this object returns a list of
420+ * Returns a list of archives for a session.
421+ *
422+ * The <code>items()</code> method of this object returns a list of
419423 * archives that are completed and in-progress, for your API key.
420424 *
421425 * @param integer $offset Optional. The index offset of the first archive. 0 is offset of the
@@ -453,7 +457,9 @@ public function setArchiveLayout(string $archiveId, Layout $layoutType): void
453457 }
454458
455459 /**
456- * Sets the layout class list for streams in a session. Layout classes are used in
460+ * Sets the layout class list for streams in a session.
461+ *
462+ * Layout classes are used in
457463 * the layout for composed archives and live streaming broadcasts. For more information, see
458464 * <a href="https://tokbox.com/developer/guides/archiving/layout-control.html">Customizing
459465 * the video layout for composed archives</a> and
@@ -496,7 +502,9 @@ public function forceDisconnect($sessionId, $connectionId)
496502 * Force the publisher of a specific stream to mute its published audio.
497503 *
498504 * <p>
499- * Also see the <a href="#method_forceMuteAll">OpenTok->forceMuteAll()</a> method.
505+ * Also see the
506+ * <a href="classes/OpenTok-OpenTok.html#method_forceMuteAll">OpenTok->forceMuteAll()</a>
507+ * method.
500508 *
501509 * @param string $sessionId The OpenTok session ID containing the stream.
502510 *
@@ -525,10 +533,12 @@ public function forceMuteStream(string $sessionId, string $streamId): bool
525533 * <p>
526534 * In addition to existing streams, any streams that are published after the call to
527535 * this method are published with audio muted. You can remove the mute state of a session
528- * by calling the <a href="#method_disableForceMute">OpenTok->disableForceMute()</a> method.
529- *
536+ * <a href="classes/OpenTok-OpenTok.html #method_disableForceMute">OpenTok->disableForceMute()</a>
537+ * method.
530538 * <p>
531- * Also see the <a href="#method_forceMuteStream">OpenTok->forceMuteStream()</a> method.
539+ * Also see the
540+ * <a href="classes/OpenTok-OpenTok.html#method_forceMuteStream">OpenTok->forceMuteStream()</a>
541+ * method.
532542 *
533543 * @param string $sessionId The OpenTok session ID.
534544 *
@@ -564,7 +574,8 @@ public function forceMuteAll(string $sessionId, array $options): bool
564574 * published to the session will no longer have audio muted.
565575 *
566576 * <p>
567- * After you call the <a href="#method_forceMuteAll">OpenTok->forceMuteAll()</a> method,
577+ * After you call the
578+ * <a href="classes/OpenTok-OpenTok.html#method_forceMuteAll">OpenTok->forceMuteAll()</a> method
568579 * any streams published after the call are published with audio muted. Call the
569580 * <c>disableForceMute()</c> method to remove the mute state of a session, so that
570581 * new published streams are not automatically muted.
@@ -603,8 +614,9 @@ public function disableForceMute(string $sessionId, array $options): bool
603614 *
604615 * @param String $sessionId The session ID of the session to be broadcast.
605616 *
606- * @param Array $options (Optional) An array with options for the broadcast. This array has
617+ * @param array $options (Optional) An array with options for the broadcast. This array has
607618 * the following properties:
619+ *
608620 * <ul>
609621 * <li><code>layout</code> (Layout) — (Optional) An object defining the initial
610622 * layout type of the broadcast. If you do not specify an initial layout type,
@@ -713,7 +725,9 @@ public function updateBroadcastLayout(string $broadcastId, Layout $layout): void
713725 }
714726
715727 /**
716- * Sets the layout class list for a stream. Layout classes are used in
728+ * Sets the layout class list for a stream.
729+ *
730+ * Layout classes are used in
717731 * the layout for composed archives and live streaming broadcasts.
718732 * <p>
719733 * For more information, see
@@ -725,7 +739,8 @@ public function updateBroadcastLayout(string $broadcastId, Layout $layout): void
725739 * <p>
726740 * You can set the initial layout class list for streams published by a client when you generate
727741 * the token used by the client to connect to the session. See the
728- * <a href="#method_generateToken">OpenTok->generateToken()</a> method.
742+ * <a href="classes/OpenTok-OpenTok.html#method_generateToken">OpenTok::generateToken()</a>
743+ * method.
729744 *
730745 * @param string $sessionId The session ID of the session the stream belongs to.
731746 *
@@ -812,8 +827,8 @@ public function listStreams($sessionId)
812827 * @param string $token The OpenTok token to be used for the participant being called.
813828 * You can add token data to identify that the participant is on a SIP endpoint or for
814829 * other identifying data, such as phone numbers. Generate a token using the
815- * <a href="#method_generateToken">OpenTok-> generateToken()</a> or
816- * <a href="OpenTok. Session.html#method_generateToken">Session-> generateToken()</a>
830+ * <a href="classes/OpenTok-OpenTok.html #method_generateToken">OpenTok:: generateToken()</a> or
831+ * <a href="classes/ OpenTok- Session.html#method_generateToken">Session:: generateToken()</a>
817832 * method.
818833 *
819834 * @param string $sipUri The SIP URI to be used as destination of the SIP Call initiated from
@@ -839,16 +854,16 @@ public function listStreams($sessionId)
839854 * INVITE request for HTTP Digest authentication in case this is required by the Third Party
840855 * SIP Platform.
841856 *
842- * <ul>
857+ * <ul>
843858 *
844- * <li><code>'username'</code> (string) — The username to be used
845- * in the the SIP INVITE request for HTTP digest authentication (if one
846- * is required).</li>
859+ * <li><code>'username'</code> (string) — The username to be used
860+ * in the the SIP INVITE request for HTTP digest authentication (if one
861+ * is required).</li>
847862 *
848- * <li><code>'password'</code> (string) — The password to be used
849- * in the the SIP INVITE request for HTTP digest authentication.</li>
863+ * <li><code>'password'</code> (string) — The password to be used
864+ * in the the SIP INVITE request for HTTP digest authentication.</li>
850865 *
851- * </ul>
866+ * </ul>
852867 *
853868 * <li><code>'secure'</code> (Boolean) — Indicates whether the media
854869 * must be transmitted encrypted (true, the default) or not (false).</li>
@@ -869,7 +884,8 @@ public function listStreams($sessionId)
869884 * @return SipCall An object contains the OpenTok connection ID and stream ID
870885 * for the SIP call's connection in the OpenTok session. You can use the connection ID
871886 * to terminate the SIP call, using the
872- * <a href="#method_forceDisconnect">OpenTok->forceDisconnect()</a> method.
887+ * <a href="classes/OpenTok-OpenTok.html#method_forceDisconnect">OpenTok::method_forceDisconnect()</a>
888+ * method.
873889 */
874890 public function dial ($ sessionId , $ token , $ sipUri , $ options = [])
875891 {
0 commit comments