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

Snapshot   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 50
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setCreatedAt() 0 4 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