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

CallEntity   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 22
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setCreatedAt() 0 3 1
1
<?php
2
/**
3
 * This class represents Call Entity
4
 *
5
 * PHP version 5.4 and 7
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 Call Entity
21
 *
22
 * PHP version 5.4 and 7
23
 *
24
 * @package   Payever\Core
25
 * @author    payever GmbH <[email protected]>
26
 * @copyright 2017-2018 payever GmbH
27
 * @license   MIT <https://opensource.org/licenses/MIT>
28
 * @link      https://getpayever.com/shopsystem/
29
 *
30
 * @method string getId()
31
 * @method string getStatus()
32
 * @method string getBusinessId()
33
 * @method \DateTime|false getCreatedAt()
34
 * @method self setId(string $id)
35
 * @method self setStatus(string $status)
36
 * @method self setBusinessId(string $businessId)
37
 */
38
class CallEntity extends MessageEntity
39
{
40
    /** @var string $id */
41
    protected $id;
42
43
    /** @var string $status */
44
    protected $status;
45
46
    /** @var string $businessId */
47
    protected $businessId;
48
49
    /** @var \DateTime|bool $createdAt */
50
    protected $createdAt;
51
52
    /**
53
     * Sets Created At
54
     *
55
     * @param string $createdAt
56
     */
57
    public function setCreatedAt($createdAt)
58
    {
59
        $this->createdAt = date_create($createdAt);
60
    }
61
}
62