api(application): v2 backport
This commit is contained in:
parent
4cd0bee231
commit
67bf3e342e
172 changed files with 2922 additions and 1579 deletions
|
@ -4,8 +4,9 @@ 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.
|
||||
|
@ -15,7 +16,10 @@ class EggVariableTransformer extends BaseTransformer
|
|||
return Egg::RESOURCE_NAME;
|
||||
}
|
||||
|
||||
public function transform(EggVariable $model)
|
||||
/**
|
||||
* Transform egg variable into a representation for the application API.
|
||||
*/
|
||||
public function transform(EggVariable $model): array
|
||||
{
|
||||
return $model->toArray();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue