2021-12-07 22:55:11 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace BookStack\Actions;
|
|
|
|
|
2021-12-08 22:29:42 +08:00
|
|
|
use BookStack\Interfaces\Loggable;
|
2021-12-07 22:55:11 +08:00
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
2021-12-08 22:29:42 +08:00
|
|
|
/**
|
|
|
|
* @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;
|
2021-12-08 22:29:42 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the string descriptor for this item.
|
|
|
|
*/
|
|
|
|
public function logDescriptor(): string
|
|
|
|
{
|
|
|
|
return "({$this->id}) {$this->name}";
|
|
|
|
}
|
2021-12-07 22:55:11 +08:00
|
|
|
}
|