2018-01-20 03:47:06 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Transformers\Api\Application;
|
|
|
|
|
|
|
|
use Pterodactyl\Models\EggVariable;
|
2021-08-07 20:25:06 +00:00
|
|
|
use Pterodactyl\Transformers\Api\Transformer;
|
2018-01-20 03:47:06 +00:00
|
|
|
|
2021-08-07 20:25:06 +00:00
|
|
|
class EggVariableTransformer extends Transformer
|
2018-01-20 03:47:06 +00:00
|
|
|
{
|
2018-01-26 03:26:06 +00:00
|
|
|
public function getResourceName(): string
|
|
|
|
{
|
2021-09-15 17:09:54 +00:00
|
|
|
return EggVariable::RESOURCE_NAME;
|
2018-01-26 03:26:06 +00:00
|
|
|
}
|
|
|
|
|
2021-08-07 20:25:06 +00:00
|
|
|
public function transform(EggVariable $model): array
|
2018-01-20 03:47:06 +00:00
|
|
|
{
|
|
|
|
return $model->toArray();
|
|
|
|
}
|
|
|
|
}
|