2018-01-20 03:47:06 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Transformers\Api\Application;
|
|
|
|
|
2018-01-26 03:26:06 +00:00
|
|
|
use Pterodactyl\Models\Egg;
|
2018-01-20 03:47:06 +00:00
|
|
|
use Pterodactyl\Models\EggVariable;
|
|
|
|
|
|
|
|
class EggVariableTransformer extends BaseTransformer
|
|
|
|
{
|
2018-01-26 03:26:06 +00:00
|
|
|
/**
|
|
|
|
* Return the resource name for the JSONAPI output.
|
|
|
|
*/
|
|
|
|
public function getResourceName(): string
|
|
|
|
{
|
|
|
|
return Egg::RESOURCE_NAME;
|
|
|
|
}
|
|
|
|
|
2018-01-20 03:47:06 +00:00
|
|
|
public function transform(EggVariable $model)
|
|
|
|
{
|
|
|
|
return $model->toArray();
|
|
|
|
}
|
|
|
|
}
|