mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-02-01 03:24:17 +08:00
26 lines
492 B
PHP
26 lines
492 B
PHP
<?php
|
|
|
|
namespace BookStack\Actions;
|
|
|
|
use BookStack\Interfaces\Loggable;
|
|
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
|
|
{
|
|
use HasFactory;
|
|
|
|
/**
|
|
* Get the string descriptor for this item.
|
|
*/
|
|
public function logDescriptor(): string
|
|
{
|
|
return "({$this->id}) {$this->name}";
|
|
}
|
|
}
|