Passed
Push — master ( 405e10...f744eb )
by F
02:39
created

Type   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 21
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
/*
4
 * PWWeb\Localisation\Models\Address\Type Model
5
 *
6
 * Standard Address Type Model.
7
 *
8
 * @package   PWWeb\Localisation
9
 * @author    Frank Pillukeit <[email protected]>
10
 * @copyright 2020 pw-websolutions.com
11
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
12
 */
13
14
namespace PWWeb\Localisation\Models\Address;
15
16
use Illuminate\Database\Eloquent\Model;
17
18
class Type extends Model
19
{
20
    /**
21
     * The attributes that are mass assignable.
22
     *
23
     * @var array
24
     */
25
    protected $fillable = [
26
        'name',
27
    ];
28
29
    /**
30
     * Constructor.
31
     *
32
     * @param array $attributes additional attributes for model initialisation
33
     */
34
    public function __construct(array $attributes = [])
35
    {
36
        parent::__construct($attributes);
37
38
        $this->setTable(config('localisation.table_names.address_types'));
39
    }
40
}
41