GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

CommonInfo::setDate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
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