PluginVersionResponseEntity   A
last analyzed

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