EventMeeting   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 22
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A event() 0 4 1
1
<?php
2
3
/*
4
 * rmarchiv.tk
5
 * (c) 2016-2017 by Marcel 'ryg' Hering
6
 */
7
8
namespace App\Models;
9
10
use Illuminate\Database\Eloquent\Model;
11
12
/**
13
 * Class EventMeeting.
14
 *
15
 * @property int $id
16
 * @property int $event_id
17
 * @property int $reg_type
18
 * @property int $slots
19
 * @property string $start_date
20
 * @property string $end_date
21
 * @property \Carbon\Carbon $created_at
22
 * @property \Carbon\Carbon $updated_at
23
 * @method static \Illuminate\Database\Query\Builder|\App\Models\EventMeeting whereId($value)
24
 * @method static \Illuminate\Database\Query\Builder|\App\Models\EventMeeting whereEventId($value)
25
 * @method static \Illuminate\Database\Query\Builder|\App\Models\EventMeeting whereRegType($value)
26
 * @method static \Illuminate\Database\Query\Builder|\App\Models\EventMeeting whereSlots($value)
27
 * @method static \Illuminate\Database\Query\Builder|\App\Models\EventMeeting whereStartDate($value)
28
 * @method static \Illuminate\Database\Query\Builder|\App\Models\EventMeeting whereEndDate($value)
29
 * @method static \Illuminate\Database\Query\Builder|\App\Models\EventMeeting whereCreatedAt($value)
30
 * @method static \Illuminate\Database\Query\Builder|\App\Models\EventMeeting whereUpdatedAt($value)
31
 * @mixin \Eloquent
32
 * @property-read \App\Models\Event $event
33
 * @property-read \Illuminate\Database\Eloquent\Collection|\Venturecraft\Revisionable\Revision[] $revisionHistory
34
 */
35
class EventMeeting extends Model
36
{
37
    use \Venturecraft\Revisionable\RevisionableTrait;
38
    protected $table = 'event_meetings';
39
40
    public $timestamps = true;
41
42
    protected $fillable = [
43
        'event_id',
44
        'reg_type',
45
        'slots',
46
        'start_date',
47
        'end_date',
48
    ];
49
50
    protected $guarded = [];
51
52
    public function event()
53
    {
54
        return $this->hasOne('App\Models\Event', 'id', 'event_id');
55
    }
56
}
57