Image   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

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
 * @author Graham Campbell <[email protected]>
17
 */
18
final class Image extends AbstractEntity
19
{
20
    /**
21
     * @var int
22
     */
23
    public $id;
24
25
    /**
26
     * @var string
27
     */
28
    public $name;
29
30
    /**
31
     * @var string
32
     */
33
    public $type;
34
35
    /**
36
     * @var string
37
     */
38
    public $distribution;
39
40
    /**
41
     * @var string
42
     */
43
    public $slug;
44
45
    /**
46
     * @var int
47
     */
48
    public $minDiskSize;
49
50
    /**
51
     * @var float
52
     */
53
    public $sizeGigabytes;
54
55
    /**
56
     * @var string
57
     */
58
    public $createdAt;
59
60
    /**
61
     * @var bool
62
     */
63
    public $public;
64
65
    /**
66
     * @var string[]
67
     */
68
    public $regions = [];
69
70
    /**
71
     * @param string $createdAt
72
     */
73
    public function setCreatedAt($createdAt)
74
    {
75
        $this->createdAt = static::convertDateTime($createdAt);
76
    }
77
}
78