whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
vonage
/
client-core
/
src
/
Messages
/
MessageObjects
/
Upload File:
files >> //home/kckglobal/www/portal/vendor/vonage/client-core/src/Messages/MessageObjects/AudioObject.php
<?php namespace Vonage\Messages\MessageObjects; use Vonage\Entity\Hydrator\ArrayHydrateInterface; class AudioObject implements ArrayHydrateInterface { /** * Legacy to pass in a caption as this should never have been supported. Nothing will happen if you pass one in. */ public function __construct(private string $url, private readonly ?string $caption = null) { } public function fromArray(array $data): AudioObject { $this->url = $data['url']; return $this; } public function toArray(): array { return [ 'url' => $this->url ]; } public function getUrl(): string { return $this->url; } /** * @deprecated Unsupported * @return string */ public function getCaption(): string { trigger_error( 'Captions are not supported in this API, this will error at server level.', E_USER_DEPRECATED ); return $this->caption; } }
Copyright ©2021 || Defacer Indonesia