<?php

namespace App\Http\Controllers\API\V1\Pouzivatel;

use App\Dtos\PouzivatelDto;
use League\Fractal\TransformerAbstract;

/**
 * Class PouzivatelDtoTransformer
 *
 * @package App\Http\Controllers\API\V1\Pouzivatel
 */
class PouzivatelDtoTransformer extends TransformerAbstract
{
    /**
     * @param \App\Dtos\PouzivatelDto $dto
     *
     * @return array
     */
    public function transform(PouzivatelDto $dto): array
    {
        return array_merge(
            $dto->toArray(),
            [
                'links' => [
                    'self' => null,
                ],
            ],
        );
    }
}
