Upgrade::setDateOfMigration()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
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 Antoine Corcy <[email protected]>
16
 * @author Graham Campbell <[email protected]>
17
 */
18
final class Upgrade extends AbstractEntity
19
{
20
    /**
21
     * @var int
22
     */
23
    public $dropletId;
24
25
    /**
26
     * @var string
27
     */
28
    public $dateOfMigration;
29
30
    /**
31
     * @var string
32
     */
33
    public $url;
34
35
    /**
36
     * @param string $dateOfMigration
37
     */
38
    public function setDateOfMigration($dateOfMigration)
39
    {
40
        $this->dateOfMigration = static::convertDateTime($dateOfMigration);
41
    }
42
}
43