Completed
Push — master ( 8131b6...c9ac78 )
by Marcel
09:22 queued 05:21
created

WebhookLog   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 19
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A webhook() 0 4 1
1
<?php
2
namespace Mpociot\CaptainHook;
3
4
use Illuminate\Database\Eloquent\Model as Eloquent;
5
6
/**
7
 * This file is part of CaptainHook arrrrr
8
 *
9
 * @license MIT
10
 * @package CaptainHook
11
 */
12
class WebhookLog extends Eloquent
13
{
14
    /**
15
     * Make the fields fillable.
16
     *
17
     * @var array
18
     */
19
    protected $fillable = ['webhook_id', 'url', 'payload_format', 'payload', 'status', 'response', 'response_format'];
20
21
    /**
22
     * Retrieve the webhook described by the log.
23
     *
24
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
25
     */
26
    public function webhook()
27
    {
28
        return $this->belongsTo(Webhook::class);
29
    }
30
}
31