Passed
Push — master ( afb8f6...f8ce69 )
by payever
03:32
created

PluginVersionResponseEntity   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 8
c 1
b 0
f 0
dl 0
loc 29
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setCreatedAt() 0 5 1
1
<?php
2
/**
3
 * PHP version 5.4 and 7
4
 *
5
 * @package   Payever\Plugins
6
 * @author    Hennadii.Shymanskyi <[email protected]>
7
 * @copyright 2017-2019 payever GmbH
8
 * @license   MIT <https://opensource.org/licenses/MIT>
9
 */
10
11
namespace Payever\ExternalIntegration\Plugins\Http\ResponseEntity;
12
13
use Payever\ExternalIntegration\Core\Http\ResponseEntity;
14
15
/**
16
 * PHP version 5.4 and 7
17
 *
18
 * @method string getFilename()
19
 * @method string getVersion()
20
 * @method \DateTime getCreatedAt()
21
 * @method string getMinCmsVersion()
22
 * @method string getMaxCmsVersion()
23
 *
24
 * @package   Payever\Plugins
25
 * @author    payever GmbH <[email protected]>
26
 * @author    Hennadii.Shymanskyi <[email protected]>
27
 * @copyright 2017-2019 payever GmbH
28
 * @license   MIT <https://opensource.org/licenses/MIT>
29
 */
30
class PluginVersionResponseEntity extends ResponseEntity
31
{
32
    /** @var string */
33
    protected $filename;
34
35
    /** @var string */
36
    protected $version;
37
38
    /** @var \DateTime */
39
    protected $createdAt;
40
41
    /** @var string */
42
    protected $minCmsVersion;
43
44
    /** @var string */
45
    protected $maxCmsVersion;
46
47
    /**
48
     * @param string $createdAt
49
     *
50
     * @throws \Exception
51
     *
52
     * @return $this
53
     */
54
    public function setCreatedAt($createdAt)
55
    {
56
        $this->createdAt = new \DateTime($createdAt);
57
58
        return $this;
59
    }
60
}
61