%PDF- %GIF98; %PNG;
Server : ApacheSystem : 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/www/admin1/vendor/vonage/client-core/src/Meetings/ |
Upload File : |
<?php
namespace Vonage\Meetings;
use Vonage\Entity\Hydrator\ArrayHydrateInterface;
class Room implements ArrayHydrateInterface
{
protected array $data;
public function fromArray(array $data): static
{
if (!isset($data['display_name'])) {
throw new \InvalidArgumentException('A room object must contain a display_name');
}
$this->data = $data;
return $this;
}
public function toArray(): array
{
return array_filter($this->data, static function ($value) {
return $value !== '';
});
}
public function __get($value)
{
return $this->data[$value];
}
}