Provinsi   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 29
rs 10
c 1
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A kabupaten() 0 4 1
1
<?php namespace Bantenprov\WilayahIndonesia\Models;
2
3
use Illuminate\Database\Eloquent\Model;
4
5
/**
6
 * The WilayahIndonesiaModel class.
7
 *
8
 * @package Bantenprov\WilayahIndonesia
9
 * @author  bantenprov <[email protected]>
10
 */
11
class Provinsi extends Model
12
{
13
	/**
14
    * Table name.
15
    *
16
    * @var string
17
    */
18
    protected $table = 'indonesia_provinces';
19
20
    /**
21
    * The attributes that are mass assignable.
22
    *
23
    * @var mixed
24
    */
25
    protected $fillable = [];
26
27
    /**
28
     * The attributes that should be hidden for arrays.
29
     *
30
     * @var array
31
     */
32
    protected $hidden 	= [];
33
	public $timestamps 	= false;
34
	
35
	public function kabupaten()
36
    {
37
        return $this->hasMany('Bantenprov\WilayahIndonesia\Models\Kabupaten','province_id');
38
    }
39
}