|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Soheilrt\AdobeConnectClient\Client\Entities; |
|
4
|
|
|
|
|
5
|
|
|
use DateTimeImmutable; |
|
6
|
|
|
use DateTimeInterface; |
|
7
|
|
|
use Exception; |
|
8
|
|
|
use Soheilrt\AdobeConnectClient\Client\Helpers\ValueTransform as VT; |
|
9
|
|
|
use Soheilrt\AdobeConnectClient\Client\Traits\Fillable; |
|
10
|
|
|
use Soheilrt\AdobeConnectClient\Client\Traits\PropertyCaller; |
|
11
|
|
|
|
|
12
|
|
|
/** |
|
13
|
|
|
* Result for Common Info Action. |
|
14
|
|
|
* |
|
15
|
|
|
* @property string|mixed $local |
|
16
|
|
|
* @property int|string $timeZoneId Time Zone ID list in {@link https://helpx.adobe.com/adobe-connect/webservices/common-xml-elements-attributes.html#time_zone_id} |
|
17
|
|
|
* @property string|mixed $cookie |
|
18
|
|
|
* @property string|mixed $host |
|
19
|
|
|
* @property string|mixed $localHost |
|
20
|
|
|
* @property int|string|mixed $accountId |
|
21
|
|
|
* @property string|mixed $version |
|
22
|
|
|
* @property string|mixed $url |
|
23
|
|
|
* @property DateTimeImmutable|string|mixed $date |
|
24
|
|
|
* @property string|mixed $adminHost |
|
25
|
|
|
* |
|
26
|
|
|
* @method string|mixed getLocal() |
|
27
|
|
|
* @method int|string getTimeZoneId() Time Zone ID list in { |
|
28
|
|
|
* @link https://helpx.adobe.com/adobe-connect/webservices/common-xml-elements-attributes.html#time_zone_id} |
|
29
|
|
|
* @method string|mixed getCookie() |
|
30
|
|
|
* @method string|mixed getHost() |
|
31
|
|
|
* @method string|mixed getLocalHost() |
|
32
|
|
|
* @method int|string|mixed getAccountId() |
|
33
|
|
|
* @method string|mixed getVersion() |
|
34
|
|
|
* @method string|mixed getUrl() |
|
35
|
|
|
* @method DateTimeImmutable|string|mixed getDate() |
|
36
|
|
|
* @method string|mixed getAdminHost() |
|
37
|
|
|
* |
|
38
|
|
|
* @method string|mixed setLocal($value) |
|
39
|
|
|
* @method int|string setTimeZoneId($value) Time Zone ID list in { |
|
40
|
|
|
* @link https://helpx.adobe.com/adobe-connect/webservices/common-xml-elements-attributes.html#time_zone_id} |
|
41
|
|
|
* @method string|mixed setCookie($value) |
|
42
|
|
|
* @method string|mixed setHost($value) |
|
43
|
|
|
* @method string|mixed setLocalHost($value) |
|
44
|
|
|
* @method int|string|mixed setAccountId($value) |
|
45
|
|
|
* @method string|mixed setVersion($value) |
|
46
|
|
|
* @method string|mixed setUrl($value) |
|
47
|
|
|
* @method string|mixed setAdminHost($value) |
|
48
|
|
|
*/ |
|
49
|
|
|
class CommonInfo |
|
50
|
|
|
{ |
|
51
|
|
|
use PropertyCaller,Fillable; |
|
52
|
|
|
|
|
53
|
|
|
/** |
|
54
|
|
|
* Set the Date. |
|
55
|
|
|
* |
|
56
|
|
|
* @param DateTimeInterface|string $date |
|
57
|
|
|
* |
|
58
|
|
|
* @throws Exception |
|
59
|
|
|
* |
|
60
|
|
|
* @return CommonInfo |
|
61
|
|
|
*/ |
|
62
|
|
|
public function setDate($date): CommonInfo |
|
63
|
|
|
{ |
|
64
|
|
|
$this->attributes['date'] = VT::toDateTimeImmutable($date); |
|
65
|
|
|
|
|
66
|
|
|
return $this; |
|
67
|
|
|
} |
|
68
|
|
|
} |
|
69
|
|
|
|