mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 18:44:16 +00:00
27 lines
517 B
PHP
27 lines
517 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace FireflyIII\Models;
|
|
|
|
use FireflyIII\Support\Models\ReturnsIntegerIdTrait;
|
|
use Illuminate\Database\Eloquent\Casts\Attribute;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class WebhookTrigger extends Model
|
|
{
|
|
use ReturnsIntegerIdTrait;
|
|
|
|
/**
|
|
* Get the ID
|
|
*
|
|
* @SuppressWarnings("PHPMD.ShortMethodName")
|
|
*/
|
|
protected function key(): Attribute
|
|
{
|
|
return Attribute::make(
|
|
get: static fn ($value) => (int) $value,
|
|
);
|
|
}
|
|
}
|