Event   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A tickets() 0 4 1
A eventDateTime() 0 4 1
1
<?php
2
3
/**
4
 * Author: Emmanuel Paul Mnzava
5
 * Twitter: @epmnzava
6
 * Github:https://github.com/dbrax/eticket
7
 * Email: [email protected]
8
 * 
9
 */
10
11
namespace Epmnzava\BillMe\Models;
12
13
use Illuminate\Database\Eloquent\Model;
14
use Epmnzava\BillMe\Models\Ticket;
15
16
class Event extends Model
17
{
18
    protected $guarded = [];
19
    protected $table="events";
20
21
    public function tickets()
22
    {
23
        return $this->hasMany(Ticket::class);
24
    }
25
26
    public function eventDateTime()
27
    {
28
        return $this->hasMany(EventDateTime::class);
29
    }
30
}
31