/home/techb158/ileadtechnology.com/vendor/bigbluebutton/bigbluebutton-api-php/src/Core
Edit: /home/techb158/ileadtechnology.com/vendor/bigbluebutton/bigbluebutton-api-php/src/Core/Hook.php (2410B)
.
*/
namespace BigBlueButton\Core;
/**
* Class Meeting.
*/
class Hook
{
/**
* @var \SimpleXMLElement
*/
protected $rawXml;
/**
* @var string
*/
private $hookId;
/**
* @var string
*/
private $meetingId;
/**
* @var string
*/
private $callbackUrl;
/**
* @var bool
*/
private $permanentHook;
/**
* @var bool
*/
private $rawData;
/**
* Meeting constructor.
*
* @param $xml \SimpleXMLElement
*/
public function __construct($xml)
{
$this->rawXml = $xml;
$this->hookId = (int) $xml->hookID->__toString();
$this->callbackUrl = $xml->callbackURL->__toString();
$this->meetingId = $xml->meetingID->__toString();
$this->permanentHook = 'true' === $xml->permanentHook->__toString();
$this->rawData = 'true' === $xml->rawData->__toString();
}
/**
* @return string
*/
public function getHookId()
{
return $this->hookId;
}
/**
* @return string
*/
public function getMeetingId()
{
return $this->meetingId;
}
/**
* @return string
*/
public function getCallbackUrl()
{
return $this->callbackUrl;
}
/**
* @return null|bool
*/
public function isPermanentHook()
{
return $this->permanentHook;
}
/**
* @return null|bool
*/
public function hasRawData()
{
return $this->rawData;
}
}