Completed
Push — master ( 274c10...b1119c )
by Graham
06:42 queued 04:17
created

Certificate::setCreatedAt()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
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 Jacob Holmes <[email protected]>
16
 */
17
final class Certificate 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 $notAfter;
33
34
    /**
35
     * @var string
36
     */
37
    public $sha1Fingerprint;
38
39
    /**
40
     * @var string
41
     */
42
    public $createdAt;
43
44
    /**
45
     * @param string $createdAt
46
     */
47
    public function setCreatedAt($createdAt)
48
    {
49
        $this->createdAt = static::convertDateTime($createdAt);
50
    }
51
}
52