<?php

declare(strict_types=1);

/*
 * Chill is a software for social workers
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

namespace Chill\DocGeneratorBundle\Repository;

use Chill\DocGeneratorBundle\Entity\DocGeneratorTemplate;
use Doctrine\Persistence\ObjectRepository;

/**
 * @extends ObjectRepository<DocGeneratorTemplate>
 */
interface DocGeneratorTemplateRepositoryInterface extends ObjectRepository
{
    public function countByEntity(string $entity): int;

    /**
     * @return array|DocGeneratorTemplate[]
     */
    public function findByEntity(string $entity, ?int $start = 0, ?int $limit = 50): array;
}
