<?php

namespace App\Modules\{{ module }}\Application\ListCount;

{{ imports }}

final class ListCount{{ module }}QueryHandler implements QueryHandler
{
    public function __construct(private {{ module }}ListCounter $listCounter) {}

    public function __invoke(ListCount{{ module }}Query $query): ListCount{{ module }}Response
    {
        return new ListCount{{ module }}Response(
            $this->listCounter->__invoke(
{{ args }}
            )
        );
    }
}
