Completed
Push — master ( 729985...a8dca8 )
by Yassir
12s
created

Snapshot::setCreatedAt()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the DigitalOceanV2 library.
5
 *
6
 * (c) Antoine Corcy <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace DigitalOceanV2\Entity;
13
14
/**
15
 * @author Yassir Hannoun <[email protected]>
16
 */
17
final class Snapshot extends AbstractEntity
18
{
19
    /**
20
     * @var string
21
     */
22
    public $id;
23
24
    /**
25
     * @var string
26
     */
27
    public $name;
28
29
    /**
30
     * @var string
31
     */
32
    public $createdAt;
33
34
    /**
35
     * @var string
36
     */
37
    public $resourceId;
38
39
    /**
40
     * @var string
41
     */
42
    public $resourceType;
43
44
    /**
45
     * @var int
46
     */
47
    public $minDiskSize;
48
49
    /**
50
     * @var float
51
     */
52
    public $sizeGigabytes;
53
54
    /**
55
     * @var string[]
56
     */
57
    public $regions = [];
58
59
    /**
60
     * @param string $createdAt
61
     */
62
    public function setCreatedAt($createdAt)
63
    {
64
        $this->createdAt = static::convertDateTime($createdAt);
65
    }
66
}
67