Completed
Pull Request — master (#51)
by claudio
03:06
created

MeetingTimeslot::meeting()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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
    /**
39
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
40
     */
41 30
    public function meeting()
42
    {
43 30
        return $this->belongsTo('plunner\Meeting');
44
    }
45
}
46