mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-03 21:05:45 -05:00
20 lines
401 B
PHP
20 lines
401 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Transformers\Api\Application;
|
|
|
|
use Pterodactyl\Models\EggVariable;
|
|
use Pterodactyl\Transformers\Api\Transformer;
|
|
|
|
class EggVariableTransformer extends Transformer
|
|
{
|
|
public function getResourceName(): string
|
|
{
|
|
return EggVariable::RESOURCE_NAME;
|
|
}
|
|
|
|
public function transform(EggVariable $model): array
|
|
{
|
|
return $model->toArray();
|
|
}
|
|
}
|