mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-21 15:53:45 +02:00
Remove old application API base transformer
This commit is contained in:
@@ -4,18 +4,16 @@ namespace Pterodactyl\Transformers\Api\Application;
|
||||
|
||||
use Pterodactyl\Models\Egg;
|
||||
use Pterodactyl\Models\EggVariable;
|
||||
use Pterodactyl\Transformers\Api\Transformer;
|
||||
|
||||
class EggVariableTransformer extends BaseTransformer
|
||||
class EggVariableTransformer extends Transformer
|
||||
{
|
||||
/**
|
||||
* Return the resource name for the JSONAPI output.
|
||||
*/
|
||||
public function getResourceName(): string
|
||||
{
|
||||
return Egg::RESOURCE_NAME;
|
||||
}
|
||||
|
||||
public function transform(EggVariable $model)
|
||||
public function transform(EggVariable $model): array
|
||||
{
|
||||
return $model->toArray();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user