nooktheme/app/Transformers/Api/Application/EggVariableTransformer.php
mowetentertainment1 eb5b65cec6 initial commit
2025-11-01 19:45:11 -04:00

23 lines
444 B
PHP

<?php
namespace Pterodactyl\Transformers\Api\Application;
use Pterodactyl\Models\Egg;
use Pterodactyl\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)
{
return $model->toArray();
}
}