mirror of
https://github.com/pterodactyl/panel.git
synced 2024-10-27 20:32:28 +01:00
22 lines
340 B
PHP
22 lines
340 B
PHP
|
<?php
|
||
|
|
||
|
namespace Pterodactyl\Transformers;
|
||
|
|
||
|
use Pterodactyl\Models\User;
|
||
|
use League\Fractal\TransformerAbstract;
|
||
|
|
||
|
class UserTransformer extends TransformerAbstract
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* Turn this item object into a generic array
|
||
|
*
|
||
|
* @return array
|
||
|
*/
|
||
|
public function transform(User $user)
|
||
|
{
|
||
|
return $user;
|
||
|
}
|
||
|
|
||
|
}
|