Completed
Pull Request — master (#51)
by claudio
05:36 queued 01:00
created

MeetingTimeslot   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 2 Features 0
Metric Value
wmc 1
c 3
b 2
f 0
lcom 0
cbo 1
dl 0
loc 24
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A meeting() 0 4 1
1
<?php
2
3
namespace plunner;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
/**
8
 * Class TimeslotsMeeting
9
 *
10
 * @package plunner
11
 * @author Claudio Cardinale <[email protected]>
12
 * @copyright 2015 Claudio Cardinale
13
 * @version 1.0.0
14
 * @property integer $id
15
 * @property string $time_start
16
 * @property string $time_end
17
 * @property integer $meeting_id
18
 * @property \Carbon\Carbon $created_at
19
 * @property \Carbon\Carbon $updated_at
20
 * @property-read \plunner\Meeting $Meeting
21
 * @method static \Illuminate\Database\Query\Builder|\plunner\MeetingTimeslot whereId($value)
22
 * @method static \Illuminate\Database\Query\Builder|\plunner\MeetingTimeslot whereTimeStart($value)
23
 * @method static \Illuminate\Database\Query\Builder|\plunner\MeetingTimeslot whereTimeEnd($value)
24
 * @method static \Illuminate\Database\Query\Builder|\plunner\MeetingTimeslot whereMeetingId($value)
25
 * @method static \Illuminate\Database\Query\Builder|\plunner\MeetingTimeslot whereCreatedAt($value)
26
 * @method static \Illuminate\Database\Query\Builder|\plunner\MeetingTimeslot whereUpdatedAt($value)
27
 */
28
class MeetingTimeslot extends Model
29
{
30
    /**
31
     * The attributes that are mass assignable.
32
     *
33
     * @var array
34
     */
35
    protected $fillable = ['time_start', 'time_end'];
36
37
    /**
38
     * The attributes excluded from the model's JSON form.
39
     *
40
     * @var array
41
     */
42
    protected $hidden = ['pivot', 'meeting'];
43
44
    /**
45
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
46
     */
47 22
    public function meeting()
48
    {
49 22
        return $this->belongsTo('plunner\Meeting');
50
    }
51
}
52