Tempattidur   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A ranjang() 0 4 1
1
<?php namespace Bantenprov\YankesInfoKamar\Models;
2
3
use Illuminate\Database\Eloquent\Model;
4
use Illuminate\Database\Eloquent\SoftDeletes;
5
/**
6
 * The InfoKamarModel class.
7
 *
8
 * @package Supriyanih\InfoKamar
9
 * @author  supriyanih <[email protected]>
10
 */
11
class Tempattidur extends Model
12
{
13
    /**
14
    * Table name.
15
    *
16
    * @var string
17
    */
18
    use SoftDeletes;
19
    protected $table = 'tempat_tidur';
20
21
    /**
22
    * The attributes that are mass assignable.
23
    *
24
    * @var mixed
25
    */
26
    protected $fillable = ['ruang_id','kode_bed','status'];
27
28
    /**
29
     * The attributes that should be hidden for arrays.
30
     *
31
     * @var array
32
     */
33
    protected $hidden = ['deleted_at'];
34
35
36
    public function ranjang()
37
     {
38
        return  $this->belongsTo('Bantenprov\YankesInfoKamar\Models\Ruangrawat','ruang_id');
39
     }
40
}
41