cbcf62086f
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
24 lines
460 B
PHP
24 lines
460 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Transformers\Api\Client;
|
|
|
|
use Pterodactyl\Models\Egg;
|
|
|
|
class EggTransformer extends BaseClientTransformer
|
|
{
|
|
/**
|
|
* Return the resource name for the JSONAPI output.
|
|
*/
|
|
public function getResourceName(): string
|
|
{
|
|
return Egg::RESOURCE_NAME;
|
|
}
|
|
|
|
public function transform(Egg $egg): array
|
|
{
|
|
return [
|
|
'uuid' => $egg->uuid,
|
|
'name' => $egg->name,
|
|
];
|
|
}
|
|
}
|