BookStack/app/Actions/Webhook.php

26 lines
492 B
PHP
Raw Normal View History

2021-12-07 22:55:11 +08:00
<?php
namespace BookStack\Actions;
use BookStack\Interfaces\Loggable;
2021-12-07 22:55:11 +08:00
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
/**
* @property int $id
* @property string $name
* @property string $endpoint
*/
class Webhook extends Model implements Loggable
2021-12-07 22:55:11 +08:00
{
use HasFactory;
/**
* Get the string descriptor for this item.
*/
public function logDescriptor(): string
{
return "({$this->id}) {$this->name}";
}
2021-12-07 22:55:11 +08:00
}