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

Currency::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
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