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