![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mautic.corals.io/vendor/twilio/sdk/src/Twilio/Jwt/Grants/ |
<?php namespace Twilio\Jwt\Grants; class VideoGrant implements Grant { private $room; /** * Returns the room * * @return string room name or sid set in this grant */ public function getRoom() { return $this->room; } /** * Set the room to allow access to in the grant * * @param string $roomSidOrName room sid or name * @return $this updated grant */ public function setRoom($roomSidOrName) { $this->room = $roomSidOrName; return $this; } /** * Returns the grant type * * @return string type of the grant */ public function getGrantKey() { return 'video'; } /** * Returns the grant data * * @return array data of the grant */ public function getPayload() { $payload = array(); if ($this->room) { $payload['room'] = $this->room; } return $payload; } }