Add method to check if an API exists for a given name

This commit is contained in:
Alejandro Celaya
2024-11-07 09:55:06 +01:00
parent 6f95acc202
commit 4c1ff72438
5 changed files with 46 additions and 6 deletions

View File

@@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
namespace Shlinkio\Shlink\Core\Repository;
use Doctrine\Persistence\ObjectRepository;
/**
* @template T of object
* @extends ObjectRepository<T>
*/
interface EntityRepositoryInterface extends ObjectRepository
{
/**
* @todo This should be part of ObjectRepository, so adding here until that interface defines it.
* EntityRepository already implements the method, so classes extending it won't have to add anything.
*/
public function count(array $criteria = []): int;
}