Passed
Push — master ( 6c42be...776013 )
by Igor
02:03
created

ErrorEntity   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 2
1
<?php
2
/**
3
 * This class represents Error 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
/**
18
 * This class represents Error Entity
19
 *
20
 * PHP version 5.4
21
 *
22
 * @category  MessageEntity
23
 * @package   Payever\Core
24
 * @author    payever GmbH <[email protected]>
25
 * @copyright 2017-2018 payever GmbH
26
 * @license   MIT <https://opensource.org/licenses/MIT>
27
 * @link      https://getpayever.com/shopsystem/
28
 */
29
class ErrorEntity extends DynamicEntity
30
{
31
    public function __construct($data = null)
32
    {
33
        if (!is_array($data)) {
34
            $data = array('message' => $data);
35
        }
36
37
        parent::__construct($data);
38
    }
39
}
40