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