misc_pterodactyl-panel/app/Transformers/Api/Application/EggVariableTransformer.php

20 lines
401 B
PHP
Raw Normal View History

<?php
namespace Pterodactyl\Transformers\Api\Application;
use Pterodactyl\Models\EggVariable;
use Pterodactyl\Transformers\Api\Transformer;
class EggVariableTransformer extends Transformer
{
public function getResourceName(): string
{
2021-09-15 17:09:54 +00:00
return EggVariable::RESOURCE_NAME;
}
public function transform(EggVariable $model): array
{
return $model->toArray();
}
}