Total Complexity | 11 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Ticket extends Model |
||
8 | { |
||
9 | // |
||
10 | protected $fillable = ['random_id', 'seat_number', 'purchase_id', 'event_id', 'price_category_id']; |
||
11 | |||
12 | /** |
||
13 | * Get the route key for the model. |
||
14 | * |
||
15 | * @return string |
||
16 | */ |
||
17 | public function getRouteKeyName() |
||
20 | } |
||
21 | |||
22 | public function price() |
||
23 | { |
||
24 | return $this->priceCategory->price; |
||
25 | } |
||
26 | |||
27 | public function purchase() |
||
30 | } |
||
31 | |||
32 | public function event() |
||
35 | } |
||
36 | |||
37 | public function priceCategory() |
||
40 | } |
||
41 | |||
42 | public function getRowAndSeat() |
||
69 |