Passed
Push — master ( 682802...46670a )
by Maximo
05:00 queued 10s
created

Currency   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 66
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 66
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSource() 0 3 1
A initialize() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Gewaer\Models;
5
6
class Currency extends AbstractModel
7
{
8
    /**
9
     *
10
     * @var integer
11
     */
12
    public $id;
13
14
    /**
15
     *
16
     * @var string
17
     */
18
    public $country;
19
20
    /**
21
     *
22
     * @var string
23
     */
24
    public $currency;
25
26
    /**
27
     *
28
     * @var string
29
     */
30
    public $code;
31
32
    /**
33
     *
34
     * @var string
35
     */
36
    public $symbel;
37
38
    /**
39
     *
40
     * @var string
41
     */
42
    public $created_at;
43
44
    /**
45
     *
46
     * @var string
47
     */
48
    public $updated_at;
49
50
    /**
51
     *
52
     * @var integer
53
     */
54
    public $is_deleted;
55
56
    /**
57
     * Initialize method for model.
58
     */
59
    public function initialize()
60
    {
61
        $this->setSource('currency');
62
    }
63
64
    /**
65
     * Returns table name mapped in the model.
66
     *
67
     * @return string
68
     */
69
    public function getSource() : string
70
    {
71
        return 'currency';
72
    }
73
}
74