mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-19 21:04:44 +02:00
23 lines
427 B
PHP
23 lines
427 B
PHP
<?php
|
|
|
|
namespace App\Transformers\Api\Application;
|
|
|
|
use App\Models\Egg;
|
|
use App\Models\EggVariable;
|
|
|
|
class EggVariableTransformer extends BaseTransformer
|
|
{
|
|
/**
|
|
* Return the resource name for the JSONAPI output.
|
|
*/
|
|
public function getResourceName(): string
|
|
{
|
|
return Egg::RESOURCE_NAME;
|
|
}
|
|
|
|
public function transform(EggVariable $model): array
|
|
{
|
|
return $model->toArray();
|
|
}
|
|
}
|