Passed
Branch master (776013)
by payever
03:51
created

ChannelSetEntity   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 11
dl 0
loc 51
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setConfigured() 0 3 1
A setCreatedAt() 0 3 1
A setUpdatedAt() 0 3 1
1
<?php
2
/**
3
 * This class represents Channel Set Entity
4
 *
5
 * PHP version 5.4
6
 *
7
 * @category  MessageEntity
8
 * @package   Payever\Core
9
 * @author    payever GmbH <[email protected]>
10
 * @copyright 2017-2018 payever GmbH
11
 * @license   MIT <https://opensource.org/licenses/MIT>
12
 * @link      https://getpayever.com/shopsystem/
13
 */
14
15
namespace Payever\ExternalIntegration\Core\Http\MessageEntity;
16
17
use Payever\ExternalIntegration\Core\Base\MessageEntity;
18
19
/**
20
 * This class represents Channel Set Entity
21
 *
22
 * PHP version 5.4
23
 *
24
 * @category  MessageEntity
25
 * @package   Payever\Core
26
 * @author    payever GmbH <[email protected]>
27
 * @copyright 2017-2018 payever GmbH
28
 * @license   MIT <https://opensource.org/licenses/MIT>
29
 * @link      https://getpayever.com/shopsystem/
30
 *
31
 * @method int getId()
32
 * @method string getName()
33
 * @method string getSlug()
34
 * @method bool getConfigured()
35
 * @method \DateTime|false getCreatedAt()
36
 * @method \DateTime|false getUpdatedAt()
37
 * @method string getDiscr()
38
 * @method self setId()
39
 * @method self setName()
40
 * @method self setSlug()
41
 * @method self setDiscr()
42
 */
43
class ChannelSetEntity extends MessageEntity
44
{
45
    /** @var int $id */
46
    protected $id;
47
48
    /** @var string $name */
49
    protected $name;
50
51
    /** @var string $slug */
52
    protected $slug;
53
54
    /** @var bool $configured */
55
    protected $configured;
56
57
    /** @var \DateTime|bool $createdAt */
58
    protected $createdAt;
59
60
    /** @var \DateTime|bool $updatedAt */
61
    protected $updatedAt;
62
63
    /** @var string $discr */
64
    protected $discr;
65
66
    /**
67
     * Sets Configured
68
     *
69
     * @param string $configured
70
     */
71
    public function setConfigured($configured)
72
    {
73
        $this->configured = filter_var($configured, FILTER_VALIDATE_BOOLEAN);
74
    }
75
76
    /**
77
     * Sets Created At
78
     *
79
     * @param string $createdAt
80
     */
81
    public function setCreatedAt($createdAt)
82
    {
83
        $this->createdAt = date_create($createdAt);
84
    }
85
86
    /**
87
     * Sets Updated At
88
     *
89
     * @param string $updatedAt
90
     */
91
    public function setUpdatedAt($updatedAt)
92
    {
93
        $this->updatedAt = date_create($updatedAt);
94
    }
95
}
96