WebhookLog   A
last analyzed

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
3
namespace Mpociot\CaptainHook;
4
5
use Illuminate\Database\Eloquent\Model as Eloquent;
6
7
/**
8
 * This file is part of CaptainHook arrrrr.
9
 *
10
 * @license MIT
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