Passed
Push — master ( 26152a...8fe73e )
by F
04:04
created

Currency   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
/**
4
 * PWWEB\Localisation\Models\Currency Model.
5
 *
6
 * Standard Currency Model.
7
 *
8
 * @author    Frank Pillukeit <[email protected]>
9
 * @copyright 2020 pw-websolutions.com
10
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
11
 */
12
13
namespace PWWEB\Localisation\Models;
14
15
use Illuminate\Database\Eloquent\Model;
16
use PWWEB\Localisation\Contracts\Currency as CountryContract;
17
18
class Currency extends Model implements CountryContract
19
{
20
    /**
21
     * Constructor.
22
     *
23
     * @param array $attributes additional attributes for model initialisation
24
     */
25
    public function __construct(array $attributes = [])
26
    {
27
        parent::__construct($attributes);
28
29
        $this->setTable(config('pwweb.localisation.table_names.currencies'));
30
    }
31
}
32