Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
13 / 13
100.00% covered (success)
100.00%
13 / 13
CRAP
100.00% covered (success)
100.00%
1 / 1
BackupSchedule
100.00% covered (success)
100.00%
13 / 13
100.00% covered (success)
100.00%
13 / 13
13
100.00% covered (success)
100.00%
1 / 1
 getEnabled
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setEnabled
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getType
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setType
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getNextScheduledTimeUtc
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setNextScheduledTimeUtc
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getHour
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setHour
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getDow
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setDow
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getDom
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setDom
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getModelExceptionClass
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Vultr\VultrPhp\Services\Instances;
6
7use Vultr\VultrPhp\Util\Model;
8
9/**
10 * Holds backup schedule information.
11 */
12class BackupSchedule extends Model
13{
14    protected ?bool $enabled = null;
15    protected string $type;
16    protected ?string $nextScheduledTimeUtc = null;
17    protected int $hour;
18    protected int $dow; // Day of the week
19    protected int $dom; // Day of the month
20
21    public function getEnabled() : ?bool
22    {
23        return $this->enabled;
24    }
25
26    public function setEnabled(bool $enabled) : void
27    {
28        $this->enabled = $enabled;
29    }
30
31    public function getType() : string
32    {
33        return $this->type;
34    }
35
36    public function setType(string $type) : void
37    {
38        $this->type = $type;
39    }
40
41    public function getNextScheduledTimeUtc() : ?string
42    {
43        return $this->nextScheduledTimeUtc;
44    }
45
46    public function setNextScheduledTimeUtc(string $nextScheduledTimeUtc) : void
47    {
48        $this->nextScheduledTimeUtc = $nextScheduledTimeUtc;
49    }
50
51    public function getHour() : int
52    {
53        return $this->hour;
54    }
55
56    public function setHour(int $hour) : void
57    {
58        $this->hour = $hour;
59    }
60
61    public function getDow() : int
62    {
63        return $this->dow;
64    }
65
66    public function setDow(int $dow) : void
67    {
68        $this->dow = $dow;
69    }
70
71    public function getDom() : int
72    {
73        return $this->dom;
74    }
75
76    public function setDom(int $dom) : void
77    {
78        $this->dom = $dom;
79    }
80
81    public function getModelExceptionClass() : string
82    {
83        return str_replace('BackupScheduleException', 'InstanceException', parent::getModelExceptionClass());
84    }
85}