Remove old application API base transformer
This commit is contained in:
parent
cf500a1a54
commit
5c81f820d8
19 changed files with 101 additions and 468 deletions
|
@ -4,18 +4,16 @@ 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.
|
||||
*/
|
||||
public function getResourceName(): string
|
||||
{
|
||||
return Egg::RESOURCE_NAME;
|
||||
}
|
||||
|
||||
public function transform(EggVariable $model)
|
||||
public function transform(EggVariable $model): array
|
||||
{
|
||||
return $model->toArray();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue