]> BookStack Code Mirror - bookstack/blob - app/Actions/Webhook.php
2d11584e63875ad3fb34294cb453863df2fb0295
[bookstack] / app / Actions / Webhook.php
1 <?php
2
3 namespace BookStack\Actions;
4
5 use BookStack\Interfaces\Loggable;
6 use Illuminate\Database\Eloquent\Factories\HasFactory;
7 use Illuminate\Database\Eloquent\Model;
8
9 /**
10  * @property int $id
11  * @property string $name
12  * @property string $endpoint
13  */
14 class Webhook extends Model implements Loggable
15 {
16     use HasFactory;
17
18     /**
19      * Get the string descriptor for this item.
20      */
21     public function logDescriptor(): string
22     {
23         return "({$this->id}) {$this->name}";
24     }
25 }