CronResponse::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 12
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 14
rs 9.8666
1
<?php
2
3
namespace AcquiaCloudApi\Response;
4
5
class CronResponse
6
{
7
    public string $id;
8
9
    /**
10
     * @var null[]|object
11
     */
12
    public array|object $server;
13
14
    public string $command;
15
16
    public string $minute;
17
18
    public string $hour;
19
20
    public string $dayMonth;
21
22
    public string $month;
23
24
    public string $dayWeek;
25
26
    public ?string $label;
27
28
    public object $flags;
29
30
    public object $environment;
31
32
    public object $links;
33
34
    public function __construct(object $cron)
35
    {
36
        $this->id = $cron->id;
37
        $this->server = $cron->server;
38
        $this->command = $cron->command;
39
        $this->minute = $cron->minute;
40
        $this->hour = $cron->hour;
41
        $this->dayMonth = $cron->day_month;
42
        $this->month = $cron->month;
43
        $this->dayWeek = $cron->day_week;
44
        $this->label = $cron->label;
45
        $this->flags = $cron->flags;
46
        $this->environment = $cron->environment;
47
        $this->links = $cron->_links;
48
    }
49
}
50