Upgrade   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

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