<?php

namespace Rector\NetteToSymfony\Tests\Rector\MethodCall\RouterListToControllerAnnotationsRetor\Fixture;

use Rector\NetteToSymfony\Tests\Rector\ClassMethod\RouterListToControllerAnnotationsRetor\Source\Route;
use Rector\NetteToSymfony\Tests\Rector\ClassMethod\RouterListToControllerAnnotationsRetor\Source\RouteList;

final class WithParameterRouterFactory
{
    public function create(): RouteList
    {
        $routeList = new RouteList();

        $routeList[] = new Route('some-path/<id>', WithParameterSomePresenter::class);

        return $routeList;
    }
}

final class WithParameterSomePresenter
{
    /**
     * @todo
     */
    public function run()
    {
    }
}

?>
-----
<?php

namespace Rector\NetteToSymfony\Tests\Rector\MethodCall\RouterListToControllerAnnotationsRetor\Fixture;

use Rector\NetteToSymfony\Tests\Rector\ClassMethod\RouterListToControllerAnnotationsRetor\Source\Route;
use Rector\NetteToSymfony\Tests\Rector\ClassMethod\RouterListToControllerAnnotationsRetor\Source\RouteList;

final class WithParameterRouterFactory
{
    public function create(): RouteList
    {
        $routeList = new RouteList();

        return $routeList;
    }
}

final class WithParameterSomePresenter
{
    /**
     * @todo
     * @\Symfony\Component\Routing\Annotation\Route(path="some-path/{id}")
     */
    public function run()
    {
    }
}

?>
