mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-11-04 02:36:53 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			473 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			473 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace Pterodactyl\Transformers\Api\Application;
 | 
						|
 | 
						|
use Pterodactyl\Models\Egg;
 | 
						|
use Pterodactyl\Models\EggVariable;
 | 
						|
 | 
						|
class EggVariableTransformer extends BaseTransformer
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * Return the resource name for the JSONAPI output.
 | 
						|
     *
 | 
						|
     * @return string
 | 
						|
     */
 | 
						|
    public function getResourceName(): string
 | 
						|
    {
 | 
						|
        return Egg::RESOURCE_NAME;
 | 
						|
    }
 | 
						|
 | 
						|
    public function transform(EggVariable $model)
 | 
						|
    {
 | 
						|
        return $model->toArray();
 | 
						|
    }
 | 
						|
}
 |