mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2026-01-07 01:20:52 -05:00
23 lines
417 B
PHP
23 lines
417 B
PHP
<?php
|
|
|
|
|
|
namespace App\Transformers;
|
|
|
|
|
|
use App\Models\ScheduledJob;
|
|
use App\Utils\Traits\MakesHash;
|
|
|
|
class ScheduledJobTransformer extends EntityTransformer
|
|
{
|
|
use MakesHash;
|
|
|
|
public function transform(ScheduledJob $job)
|
|
{
|
|
return [
|
|
'id' => $this->encodePrimaryKey($job->id),
|
|
'action_name' => $job->action_name,
|
|
'parameters' => $job->parameters
|
|
];
|
|
}
|
|
}
|