mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 11:55:51 -05:00
26 lines
502 B
PHP
26 lines
502 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Http\Resources\Api\Application;
|
|
|
|
use Illuminate\Http\Request;
|
|
use Pterodactyl\Models\Egg;
|
|
use Pterodactyl\Models\EggVariable;
|
|
|
|
/**
|
|
* @extends ApplicationResource<EggVariable>
|
|
*/
|
|
class EggVariableResource extends ApplicationResource
|
|
{
|
|
public function resourceName(): string
|
|
{
|
|
return Egg::RESOURCE_NAME;
|
|
}
|
|
|
|
public function toArray(Request $request): array
|
|
{
|
|
return $this->resource->attributesToArray();
|
|
}
|
|
}
|