<?php

namespace Inside\BCLH\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Str;
use Inside\BCLH\Actions\DeclensionContent;

/**
 * Duplicate controller
 *
 * @category Class
 * @author   Maecia <technique@maecia.com>
 * @license  http://www.gnu.org/copyleft/gpl.html GNU General Public License
 * @link     http://www.maecia.com/
 */
class DuplicateController
{
    public function duplicate(Request $request): array
    {
        $contentType = $request->get('content_type');
        $uuid = $request->get('uuid');

        return (new DeclensionContent($contentType, $uuid))->handle();
    }
}
